meh-cfl

Forum Replies Created

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • in reply to: delRowData bug on Grid with Multiselect #100530
    meh-cfl
    Participant

    I think I ran into this problem myself, the issue is that when the row is deleted by jqGrid it is (quite rightly) removed from the list of selected rows.

    If when you loop over the rows to delete you are just looping over the list of selected rows then this array is changed on the fly by the delete function so it doesn't work quite as you might expect.

    The workaround is to copy the array of selected rows using .slice() – or you could always try and delete the first entry in the array of selected rows.

Viewing 1 replies (of 1 total)

Stay connected with us in your favorite flavor!