Drag & drop last row to 1st position

On the official example when I try to drag and drop “Alice in Wonderland” to the 1st position it is not possible. It will be dropped to the 2nd position. However I can move “A Time to Kill” to last position. Why is that antisymmetry? Can this be resolved? How to be able to put the last row to the first position?

https://dhtmlx.com/docs/products/dhtmlxGrid/samples/05_drag_n_drop/02_pro_drag_events.html?_ga=2.6556210.1243391623.1643729238-617181441.1631284241

Please, try to use the “complex” mode of the drag behaviour:
https://docs.dhtmlx.com/api__dhtmlxgrid_setdragbehavior.html

1 Like