PDA

View Full Version : [CLOSED] Infinite Scrolling



rnachman
Aug 06, 2012, 7:26 PM
Does infinite scrolling support "Drag and Drop" of rows? We are currently using paging for our grids, and are able to re-order rows using drag and drop.

Daniil
Aug 06, 2012, 7:49 PM
Hi,

I think yes, it should work.

But, I guess, re-ordering will be lost with fetching a data for a new page due to re-applied sorting. It means that you will need to use an additional ModelField for rows order and set up a default sorter using that ModelField. And you will need to save a new order before fetching a data for a new page.

Vladimir
Aug 06, 2012, 8:14 PM
No, it will not work because Store loads records during scrolling therefore all changes (including order) will be lost

Daniil
Aug 09, 2012, 6:03 PM
And you will need to save a new order before fetching a data for a new page.

Yes, I was wrong - saving won't help. The records are cached client side. When a grid gets records for a new page, it also reloads the records from that cache with the initial order.