Hi Abu,
Currently I have a working master-detail pair of Grids. I’m wondering if I can implement something to let the user reorder the rows on the detail Grid, either by dragging the row to the preffered position, or by adding two buttons that move the selected row up or down. I guess the database will need a field to maintain the order, and i currently have that.
¿Is there any online demo that I can refer to? Thanks in advance.
Hello,
You can sort of the database field which stores listing order number.
And make 2 toolbar buttons to move up / move down. On click of those buttons, you need to implement a callback function that will increment or decrement the ordering in database.
For ref: https://www.gridphp.com/demo/demos/editing/bulk-edit.phps
131-133: register callback event
135: callback function
141-152: edit description button working
224-264: adding toolbar button