PDA

View Full Version : Ext.selection.CheckboxModel issue



pratapk
24 Apr 2013, 7:21 AM
1) I have issue with Ext.selection.CheckboxModel , we have grid with pagination , first column of the grid is checkboxmodel , now if i click on header column of checkboxmodel, all the rows are checked but if i navigate to next page header selection is still retained.

2) Is there any way to display text and checkbox in header column.

slemmon
25 Apr 2013, 7:06 PM
Hmm.... don't believe there is a config for resetting the header to unchecked on page change, but you may be able to put the paging toolbar's change event to good use:
http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.toolbar.Paging-event-change

There's not a config to change the header content/text. To display text and a checkbox you'll need to extend the checkbox selection model class.