nesken

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • in reply to: delRowData bug on Grid with Multiselect #100136
    nesken
    Participant

    nesken said:

    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–) {

    in reply to: delRowData bug on Grid with Multiselect #100135
    nesken
    Participant

    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–) {

Viewing 2 replies - 1 through 2 (of 2 total)

Stay connected with us in your favorite flavor!