PDA

View Full Version : [FIXED] CheckBoxSelectionModel not working in latest 1.2 revision check out



panthro
17 Mar 2009, 8:59 AM
Checked out revision 1336 yesterday and started testing it on one of our products.

Checkbox columns are no longer working. I don't know if this is a general problem with grids.

Clicking down the column on a grid, the previous rows are becoming unhighlighted/unchecked. Also not able to hold ctrl and select multiple rows.

code is as follows:

checkbox making:


List<ColumnConfig> configs = new ArrayList<ColumnConfig>();

this.checkBoxColumn = new CheckBoxSelectionModel<BeanModel>();
this.checkBoxColumn.setSelectionMode(SelectionMode.MULTI); //added to see if it would work
configs.add(this.checkBoxColumn.getColumn());


grid:


final ColumnModel cm = new ColumnModel(configs);
this.grid = new EditorGrid<BeanModel>(this.listStore, cm);
this.grid.setBorders(false);
this.grid.setSelectionModel(this.checkBoxColumn);
this.grid.addPlugin(this.checkBoxColumn);
this.grid.setHeight(800);

mystix
22 Mar 2009, 6:04 PM
[ tiny bump to get it back on the radar for the OP who posted it in the wrong forum almost a week ago ]

The_Jackal
22 Apr 2009, 7:42 PM
Hi,

I am also getting this problem on 1.2.3. It works with Grid but not with EditorGrid.

Is more information for this bug?

sven
22 Apr 2009, 9:34 PM
Was already fixed in SVN.