jpartogi
14 Oct 2009, 2:50 AM
Hi all,
I'd like to have a grid which by default having the all checkboxes checked. I have added the CheckBoxSelectionModel as the selection model to the grid and call the selectAll method on the SelectionModel, but does not work.
Grid<CepForm> grid = new Grid(store, cm);
CheckBoxSelectionModel<MyModel> sm = new CheckBoxSelectionModel<MyModel>();
grid.setSelectionModel(sm);
sm.selectAll();
So how do we suppose to do this in GXT? Am I missing something here?
Many thanks in advance.
I'd like to have a grid which by default having the all checkboxes checked. I have added the CheckBoxSelectionModel as the selection model to the grid and call the selectAll method on the SelectionModel, but does not work.
Grid<CepForm> grid = new Grid(store, cm);
CheckBoxSelectionModel<MyModel> sm = new CheckBoxSelectionModel<MyModel>();
grid.setSelectionModel(sm);
sm.selectAll();
So how do we suppose to do this in GXT? Am I missing something here?
Many thanks in advance.