After deleting last row with fnDeleteRow
After deleting last row with fnDeleteRow
I have a table with 125 elements. I put into 25 rows 5 pages.
When user clicks a button on table I delete the row with fnDeleteRow like this:
[code] var oTable = $('#myTable').dataTable();
oTable.fnDeleteRow( $('#myrow' + id) ); [/code]
But when user deletes 25th row, "second page's first element" appears.
And first page includes only one row.
When I delete new row, first element in second page appears in first page. And again one element in first page.
It seems like default value for redrawing is "true" (http://www.datatables.net/api#fnDeleteRow)
Although redrawing occurs I still doesn't get a proper result.
After deleting first line, is it possible to refresh the table and put 25 elements in first page again?
Like Gmail does for Inbox ?
When user clicks a button on table I delete the row with fnDeleteRow like this:
[code] var oTable = $('#myTable').dataTable();
oTable.fnDeleteRow( $('#myrow' + id) ); [/code]
But when user deletes 25th row, "second page's first element" appears.
And first page includes only one row.
When I delete new row, first element in second page appears in first page. And again one element in first page.
It seems like default value for redrawing is "true" (http://www.datatables.net/api#fnDeleteRow)
Although redrawing occurs I still doesn't get a proper result.
After deleting first line, is it possible to refresh the table and put 25 elements in first page again?
Like Gmail does for Inbox ?
This discussion has been closed.