PDA

View Full Version : Problem in clearing the header checkbox of CheckboxSelectionModel



anshu_gupta
11 Feb 2011, 12:05 AM
Hi,
I have a CheckboxSelectionModel configured in my GridPanel.
I have a function which performs some action and after that clears all selections after completion of that action.
I am able to clear the rows in gridpanel but not the checkbox which was used to select all rows.. i.e the header checkbox .
I am using
grid.getSelectionModel().clearSelections();
Am i missing something.
Thanks.

kkavitha05
11 Mar 2011, 10:37 PM
var grid = Ext.getCmp('grid_id');
var view = grid.getView(),
t = Ext.fly(view.innerHd).child(".x-grid3-hd-checker"),
isChecked = t.hasClass("x-grid3-hd-checker-on");
if(isChecked)
t.removeClass("x-grid3-hd-checker-on");