Project

General

Profile

Actions

Feature #1728

closed
SR KD

Support of disabled item within WComboBox

Feature #1728: Support of disabled item within WComboBox

Added by Stefan Ruppert over 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
03/01/2013
Due date:
% Done:

0%

Estimated time:

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

ComboBox-Disabled.png (11.2 KB) ComboBox-Disabled.png Trac Custom Search disabled ComboBox item example Stefan Ruppert, 03/01/2013 07:07 AM

JH Updated by Jan Hrubeš over 13 years ago Actions #1

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 Actions #2

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

KD Updated by Koen Deforche about 13 years ago Actions #3

  • Status changed from InProgress to Resolved

KD Updated by Koen Deforche about 13 years ago Actions #4

Fixed using the ItemIsSelectable flag (and adding setFlags() to WStringListModel)

KD Updated by Koen Deforche about 13 years ago Actions #5

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom