Tough one: Drag n Drop Rows and their Place Order

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
asifkilwani
Forum Newbie
Posts: 1
Joined: Thu Jan 29, 2009 2:19 am

Tough one: Drag n Drop Rows and their Place Order

Post 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?
Post Reply