PDA

View Full Version : EditorGrid & CheckBox Column Issue



lucas.baptista
8 Jul 2010, 11:13 AM
First of all , sorry for my poor english...

I dont know why but when i set a CellEditor with a CheckBox on a my columns (CheckColumnConfig) , the cell is selected insted of just change the value, if i want to change the value of the cell i need to click it again after this selection.

Here is how i set the CellEditor on my column.



CheckColumnConfig columnBoolean = new CheckColumnConfig(colDef.getFieldName(), colDef.getTitle(), w);
CellEditor checkBoxEditor = new CellEditor(new CheckBox());
columnBoolean.setEditor(checkBoxEditor);

micgala
8 Jul 2010, 11:37 PM
Please check this sample.
http://www.sencha.com/examples/explorer.html#editablegrid
Make sure you do it the way it is there.

I suspect that you are forgetting to set this:
grid.addPlugin(columnBoolean);

Regards,
Michel.