PDA

View Full Version : ExtJS Infinte Scroll with checkboxselectionmodel



Ronits
15 Apr 2013, 12:09 PM
Hi,
I tried to implement Infinite scroll in a buffered grid.
The grid is having a selModel: Ext.selection.CheckboxModel.
What is happening, suppose the pageSize of thebuffered store is 100, and I load the store as : store.guaranteeRange(0,99).
And, say there are 300 total records present.
User selects the 200th row and closes the grid.
Next time, when user renders the grid by clicking on a button, the grid should retain the selection, but it is not.
Please help.

slemmon
17 Apr 2013, 8:21 AM
When you say closes the grid do you mean that the grid is destroyed? Or just collapsed/hidden?

Ronits
18 Apr 2013, 2:13 AM
Hi,
Destroying the grid, by doing a .close() on its container, which is a window.

slemmon
18 Apr 2013, 2:38 PM
What about if you set the closeAction (http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.window.Window-cfg-closeAction) config on the window to 'hidden' so that the grid and it's selections aren't destroyed when the window is closed?