PDA

View Full Version : .CheckboxSelectionModel + PagingBar losing selections



kelshy
21 Jun 2010, 6:26 PM
Hi All,

When using the CheckboxSelectionModel and PagingBar on the one grid changing pages causes the selection to be lost.

i.e. Selecting a row on page 1, switching to page 2 and then back to page 1 the row is no longer selected.

I'm keen to know if this is expected behavior, and any pointers on getting this working correctly?

Thanks

darthwes
21 Jun 2010, 6:59 PM
That's as expected. You would need to store either the row's id or maybe the selected index for each page. Then when you receive the load event you can tell the grid to select the right row.

kelshy
21 Jun 2010, 7:15 PM
That's as expected. You would need to store either the row's id or maybe the selected index for each page. Then when you receive the load event you can tell the grid to select the right row.

Thanks,

Found this thread in the 2.0 forum which I'm looking at now:
http://www.sencha.com/forum/showthread.php?45723-problem-in-grid-pagination&highlight=getselectionmodel