PDA

View Full Version : Can you use Checkboxes with GroupSummaryView in a grid?



alexmc
24 Jun 2009, 8:32 PM
Hi,

I have the case where I am trying to add checkboxes either through CheckboxColumnConfig or CheckBoxSelectionModel to a grid using GroupSummaryView.

If I do not have the checkbox all the data in grid appearing correctly with grouping but as soon as I add the checkbox it comes up with the grid but no data but does not throw any sort of error.

What I want to know is if this is even possible??

Example of snippet of what I have:

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

CheckBoxSelectionModel<EmployeeActivitySummaryModel> sm = new CheckBoxSelectionModel<EmployeeActivitySummaryModel>();

configs.add(sm.getColumn());
.
. <More columns defined including grouping column>
.

GroupSummaryView summary = new GroupSummaryView();
summary.setEnableGroupingMenu(false);
summary.setShowGroupedColumn(false);
summary.setForceFit(true);
.
. <Code here to inisitialise store>
.
EditorGrid<EmployeeActivitySummaryModel> grid = new EditorGrid<EmployeeActivitySummaryModel>(store, cm);
grid.addPlugin(sm);
grid.setView(summary);
grid.setBorders(false);
grid.setBorders(true);
setPanelGrid(grid);