Page 1 of 1

Tough one: Drag n Drop Rows and their Place Order

Posted: Thu Jan 29, 2009 2:21 am
by asifkilwani
Hi,

I have a grid where i can swap multiple or single rows at once and i want to use this functionality for re-ordering records. But my grid has paging, ordering and sorting.

E.g.:
current page: 3
sorted by: status (asc)
page limit: 5
Current Record display (id, place_order): [(1,1), (15,15), (23,23), (21,21), (4,4)]

now if user swaps rows as: [(15,15),(1,1), (23,23), (4,4),(21,21)]

I am confuse that what will be the new place_orders (order sequence) for them.

Any expert can help on that?