curious1
curious1

Reputation: 14717

JqGrid: have a dropped row stay where it was dropped

I am playing with JQGrid and its drag ad drop.

There are good examples here:

http://trirand.com/blog/jqgrid/jqgrid.html

I want to drag a row and dropped it in the same grid. Here is how I achieved this:

jQuery("#grid1").jqGrid('gridDnD',{connectWith:'#grid1'});

The problem is that in the above setting, a dropped row is always placed in the top of the grid (the first row). I want to a dropped row stay where it was dropped. How can I do this? If a jsfiddle is needed, please let me know.

Thanks!

Upvotes: 0

Views: 123

Answers (1)

Oleg
Oleg

Reputation: 221997

You should use sortableRows method instead of gridDnD to reorder rows in the grid.

Upvotes: 1

Related Questions