How to remove checkbox selection from all views in checkbox selection model in EXT grid

962 views Asked by At

I have a Ext grid with checkbox selection Model. The grid contains multiple pages of 50 records each. I have a 'Clear Selections' button to deselect all the selected rows in the selection model. The code for this is :

 handler: function(){
         this.selectionModel.deselectAll();
         this.selectedReordsArray.clear();

         },
        scope: this

The problem is, when I select some records in the first page and move to second page and select some records there as well. Now if I click 'Clear Selections' button it deselects the rows on that page i.e. second page , but when I go back to page 1 , the rows there are still selected. Is there any way to remove checkbox selections from all the pages.

Thanks,

PS : I am using Ext JS 4.1.3

1

There are 1 answers

0
Preethi Shettigar On

Add "pruneRemoved: false" for your selmodel. Then try adding deselectAll() method for your gridstore. This will clear selected records from all pages.