I would like to know if we can use a custom number for the row order. Or call an event on drag and drop so i can re-number another column myself? Example in picture below.
Thanks in advance
Tim
1 Answers
Hi,
We can have custom sort field and then row drag-drop will change that field for ordering. In the demo, we have used database field sortfield name ‘roworder’.
$opt["sortrows"] = array("sortfield"=>"roworder", "position"=>"first");
Code: https://www.gridphp.com/demo/demos/apps/todos.phps
Demo: https://www.gridphp.com/demo/demos/apps/todos.php
Your Answer