27 Nov 2010 9:26 PM #1
Combo Box Enable Disable ItemsHi,
I would like to enable/disable the items in the combo box. For example, if I select a year (2010) combo box then few months (jan, Feb, March) in the month combo box should be enabled & the other months (Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec) should be disabled. Is there any sample to meet the requirement above?
I appreciate your help!
28 Nov 2010 5:43 AM #2
There is no direct way to disable items in a ComboBox. You can for example listen to the SelectionChange event and if a disabled item gets selected, you can mark the combobox invalid (you can also use the Validator for this). I than would also use a custom template to somehow mark disabled items, so the user knows that it should not select these items.
28 Nov 2010 12:59 PM #3
Thanks for the information. Let me try to do it in the way you have mentioned. If I need help then I will respond to this thread.
By LukasP in forum Ext GWT: DiscussionReplies: 3Last Post: 14 Jan 2011, 10:46 AM
By lopita in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 8 Aug 2009, 3:00 AM
By cadudecastroalves in forum Ext 2.x: Help & DiscussionReplies: 4Last Post: 22 Jan 2008, 2:26 AM