fnDeleteRow bug DT_index?
fnDeleteRow bug DT_index?
Hi.
I'm doing a loop with a fnDeleteRow
[code]
for (var key in deleteData)
{
var dt_index = deleteData[key]; //
oTable.fnDeleteRow(dt_index);
}
[/code]
The problem is, if i have dt_index 100 (for example) and then delete index 101...it won't be delete (101) because after each fnDeleteRow index are updating so 101's index doesn't exists! It will be "converter" to 100 Am i missing something?
I'm doing a loop with a fnDeleteRow
[code]
for (var key in deleteData)
{
var dt_index = deleteData[key]; //
oTable.fnDeleteRow(dt_index);
}
[/code]
The problem is, if i have dt_index 100 (for example) and then delete index 101...it won't be delete (101) because after each fnDeleteRow index are updating so 101's index doesn't exists! It will be "converter" to 100 Am i missing something?
This discussion has been closed.
Replies
Allan
My "solution" works
I click in specific cell of a row to delete de row, so i save the internal index in array, then i click in another and the same...at the end i click a button to confirm delete those rows with a loop posted in my first post