View Full Version : CheckBoxSelectionModel listener for header checkbox

12 Jul 2010, 1:43 PM

Is there a listener telling me when a user selects/deselects the header checkbox in a grid with a checkboxselectionmodel ?
Since selecting it will fire a 'selectrow' event for each row in the grid, my app shows sequentially more details of that row in another panel, which is something I only want when a user clicks on a row in the grid.

So I'm looking for an event to prevent this behavior, but I can't find one.

smEmployees = new Ext.grid.CheckboxSelectionModel();
smEmployees.on('rowselect', function(sm, rowIndex, r) {

The listener for this event should set gSelectFromToggle to true before, and to false after clicking on the header checkbox.
A different rowIndex (for example -1) would be great and all I need...

Thanks for any help.