Hybrid View
-
9 Feb 2009 8:06 AM #1
[FIXED] Select all checkbox remains selected when paging to the next page in Grid
[FIXED] Select all checkbox remains selected when paging to the next page in Grid
- GWT 1.5.3
- GXT 1.2.2
- Windows XP
When using a "Grid + CheckBoxSelectionModel + Paging":- Click on the check all checkbox to select all items in Grid
- Navigate to the second page clicking the arrow -> in the PagingToolBar
- Note that the "select all" checkbox in the header remains checked
-
18 Feb 2009 10:44 AM #2
I got this from diffrent posting try this
var sm = new Ext.grid.CheckboxSelectionModel({
listeners: {
'selectionchange': function() {
var hd = Ext.fly(this.grid.getView().innerHd).child('div.x-grid3-hd-checker');
if (this.getCount() < this.grid.getStore().getCount()) {
hd.removeClass('x-grid3-hd-checker-on');
} else {
hd.addClass('x-grid3-hd-checker-on');
}
}
}
});
-
18 Feb 2009 3:57 PM #3
I did a change to this. It now also gets selected if you select all rows and gets automatically deselected if you deselect one row. Will be in SVN soon.
-
27 Feb 2009 1:52 PM #4
-
5 Jan 2010 9:41 AM #5
The same behavior exists in EXTJS.
How does a nice fix like this get into EXTJS?varsos


Reply With Quote