PDA

View Full Version : select deselect checkbox in grid column header



santoshsatav
20 Jun 2010, 9:07 PM
it sound like a common problem , so forgive me but i am not able to solve this problem
i have grid whos first column is checkbox colum having check box in header to select all rows,so what i want is to sync header checkbox with row checkboxes , i want to deselect header checkbox when on of row in grid deselected !
:-/
thank you.

Condor
20 Jun 2010, 10:41 PM
You can change the header checkbox of a CheckboxSelectionModel by using:

var setHeaderCheckbox: function(checked){
grid.getView().mainHd.child('.x-grid3-hd-checker')[checked ? 'addClass' : 'removeClass']('x-grid3-hd-checker-on');
};