PDA

View Full Version : Grid Pagination with checkbox



JsNoob
21 Apr 2013, 5:38 PM
Hi,

I am creating a grid w/ checkbox on each row. What I need to do is retain the checked row whenever the user paginates. is there an easy way to do is? What I have done so far is save the checked records into an array.

Regards,
JsNoob

willigogs
22 Apr 2013, 2:54 AM
Get the rows in your store beforeLoad event, then on load use the selectionModel's selectRows() method:
http://docs.sencha.com/extjs/3.4.0/#!/api/Ext.grid.RowSelectionModel-method-selectRows

brittongr
23 Apr 2013, 2:54 AM
I remember out there was a plugin to do what you need, the name was CheckBoxMemory but i couldn't find it right now.