I am using the tableDnD with jqGrid. AWESOME! So when I click on the row to move the item, it works fine with no issues.
Once you move your row, I make an ajax call on the tableDnD's onDrop handle. So when the data has been updated by the server I want to reload the grid (which works just fine) so that the sort order (which is also a colModel column the user can see) can be refreshed on the screen. This works great too. Bu now this is where I have the issue. How do I edit the record, that is, your jqGrid adds the “selected” class to the row so that when I click on the jqGrid footer's “edit this record” button it knows what record you selected. I tried to keep a reference with a variable to the row that was clicked on, but even though it successfully adds the “selected” class back to the clicked row after the grid has reloaded, I can see this in Firebug, it just adds it temporarily and then something else removes it again after just a split second, I am not sure what is removing it. I don't know if anyone else has this issue, and ideas. See my code example below:
item = my grid variable:
$(item).jqGrid({
…
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top