خرید بک لینک

Vote count: 0

Hi I want to delete rows from table according to its rowidx but its not going on!

I want to delete all rows with status 777

I writed the following js code for deleting the row

refreshTableByName: function (table) {

$(table).DataTable().rows().every(function (rowIdx, tableLoop, rowLoop) {

    var row = this.data();
    if (typeof row.Status != 'undefined'){


          if(row.Status == 777) 

        $(table).DataTable().row(rowIdx).remove().draw();

    }
    else { this.data(row).draw(); }


})

},

what wog with that ?

I newer to datatables so I'm tring to googeld a lot but nothing help me..

I would happy to any help:)

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 13 خرداد 1395 ساعت: 22:41

صفحه بندی