Extjs, i am facing an issue in gridSelectionModel of checkbox grid. When i tried to select all checkbox using grid.gridSelectionModel().selectAll(). For few records it works, but with records more than 500 it makes page not responding. i tried with suspending the events. But all the above does not work as expected. I am using Extjs 4.2.2 version
1
votes
I think this is grid.getSelectionModel() not grid.gridSelectionModel(). And It should work. Tell me one think how are you showing so many records? Did you used paging or simply you are showing all data in grid.
- Mohit Saxena
i have to show around 10000 records at a time. When click on a button i have to select all records. Upto 1000 records it works fine but after that it makes page not responding
- Nayas Subramanian
2 Answers
1
votes
I have reproduced your issue in 4.2.2 in this fiddle. The browser window freezes for quite some time.
The problem is fixed in 5.1.2 and 6.0.1.
In the docs I found that selectAll has the suppressEvent flag, which works out quite well (selectAll(true)). You would want to manually fire the selectionchange event once after working with suppressEvent.