Using SortableRows and know when rows have been moved

Posted by DW on Stack Overflow See other posts from Stack Overflow or by DW
Published on 2010-03-04T21:34:59Z Indexed on 2010/05/20 10:40 UTC
Read the original article Hit count: 302

Filed under:
|

I want to take advantage of the sortableRows property of the jqGrid. How do I detect when a row has been moved. I have studied the documentation and looked for examples but haven't found much. I do believe it is something like

jQuery("#grid").sortableRows({connectWith:'#gird',
                              ondrop: function(){ alert("row moved") }});

but that does not work. I can move the rows, but don't seemed to have trapped the event. Is there something wrong with my syntax or my approach in general.

Basically, I need to know that the rows have been rearranged so I can be sure they get saved with their new order.

Thanks

© Stack Overflow or respective owner

Related posts about jqgrid

Related posts about sortable