PDA

View Full Version : how to uncheck checkbox when i push 'reset' button



vee.ant
6 Aug 2009, 9:53 PM
hello all,
i have a problem with my checkbox

well, i have a panel and xtype checkbox with an id on it
it have many textfield too,
plus 2 button, 'Save' button and 'Reset' button

what i want to do is when i clicked the 'Reset' button, all the textfield will be empty and checkbox is being unchecked
it has no problem with the textfield, but the checkbox can't be unchecked

i've try


--button handler--
....
Ext.getCmp('chckBoxID').checked = false;
....

--button handler--
....
Ext.getCmp('chckBoxID').setValue(false);
....
does anyone have a hint about this??