Project

General

Profile

Actions

Support #2939

open

how to create CheckBoxList

Added by Andrey Gavrilin almost 10 years ago. Updated almost 10 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
Target version:
-
Start date:
04/15/2014
Due date:
% Done:

0%

Estimated time:

Description

Hello!

Could anybody help me and describe how to make CheckBoxList? I tried to use WSelectionBox and set WStandardItemModel and set

item->setCheckable(true);

item->setFlags(Wt::ItemIsUserCheckable);

But it doesn't work. Also i tried to use WTableView with WStandardItemModel and one column. CheckBoxes are displayed but it's not good solution for me. I'm new in wt and i need help. Maybe somebody already made CheckBoxList. I waiting for your advices and maybe short example?

Thanks for any help

Actions #1

Updated by Koen Deforche almost 10 years ago

  • Status changed from New to Feedback
  • Assignee set to Koen Deforche

WSelectionBox indeed do not support CheckBoxes (it uses an HTML element which does not have support for that).

What's not good about the WTableView solution, perhaps it can be tweaked to be good?

Actions

Also available in: Atom PDF