onoank said:
Non of the solutions above work for me 🙁
Is there any solutions??
I had exactly the same problem and, as they explained above, the solution is to iterate the array downwards. This is a copy of my code that is working fine. You can include an alert in the middle of the loop to see how the rows are deleted starting from the tail.
var rowids = $('#list').jqGrid('getGridParam', 'selarrrow');
for (var i = rowids.length – 1; i >= 0; i–) {