PDA

View Full Version : CheckBox throwing exception



dagarwal82
7 Aug 2010, 2:03 AM
Hi ,

List<ColumnConfig> configs = new ArrayList<ColumnConfig>();
CheckColumnConfig checkColumnConfig = new CheckColumnConfig("check", "Select", 30);
CheckBox check = new CheckBox();
check.setEnabled(true);
check.enableEvents(true);
CellEditor checkEditor = new CellEditor(check);
checkColumnConfig.setEditor(checkEditor);
configs.add(checkColumnConfig);

I am adding this configs to a Grid .
Click on checkbox throws an exception of onMouseDown event

sven
9 Aug 2010, 6:29 AM
You dont have to set an celleditor if you use a CheckCollumnConfig.

make sure your model has a dataindex "check" with a boolean value.