Store grid after row sorting

Hello,

I want to sort the rows in my grid using Drag and Drop. This works well using grid.enableDragAndDrop().
How can I save the new row order? Row Index and Row Id are moving together with the rows when the user does drag and drop.

Row Index is not moving together with the row but only the row ID.
You may try to use following methods to store the sorting in the cookies:

grid.saveOrderToCookie(name,cookie_param); // save sorting order to cookies grid.loadOrderFromCookie(name); // load sorting order from cookies
Here you can find a tutorial:
docs.dhtmlx.com/doku.php?id=dhtm … operations