PDA

View Full Version : EditorGrid - CkeckBox - Perform tasks on checkbox click



ashly.jos@gmail.com
18 Apr 2011, 4:24 AM
Hi All,

I'm using EditorGrid and I have a CheckBox and a ComboBox on each row. I need to enable/disable ComboBox depending on CheckBox is selected or not. How do I do that? where do I add the listener?



CheckColumnConfig checkColumn = new CheckColumnConfig("active", "Active?", 55);

CellEditor checkBoxEditor = new CellEditor(new CheckBox());
checkColumn.setEditor(checkBoxEditor);
checkColumn.setSortable(false);
checkColumn.setMenuDisabled(true);
checkColumn.setWidget(checkboxSelectAll,null);
checkColumn.setResizable(false);

configs.add(checkColumn);


Thanks in advance,
-ash