Feature #1728
closedSupport of disabled item within WComboBox
0%
Description
Hi,
I would like to have a setItemDisabled(int index, bool disable) method within WComboBox class. Thus an user cannot select such a disabled item from the WComboBox. The attached screenshot is from a Trac Custom Search page which shows this feature.
To implement this I would add a Wt::ItemFlag::ItemIsDisabled and add support for it within the WStringListModel (maybe a member std::vector disabled_?). Within the WComboBox class the updateDom() method should then set the PropertyDisabled if the item is disabled.
Regards,
Stefan
Files
JH Updated by Jan Hrubeš over 13 years ago
Hi,
this is duplicate of feature #1179 .
I'm using a java script workaround for now. It is mentioned in #1179 post.
regards,
Jan
KD Updated by Koen Deforche over 13 years ago
- Status changed from New to InProgress
- Assignee set to Koen Deforche
KD Updated by Koen Deforche about 13 years ago
- Status changed from InProgress to Resolved
KD Updated by Koen Deforche about 13 years ago
Fixed using the ItemIsSelectable flag (and adding setFlags() to WStringListModel)
KD Updated by Koen Deforche about 13 years ago
- Status changed from Resolved to Closed