Removing rows
Removing rows
Just a quick heads up - In the past i've just done the $(this).parents('tr').remove(); call to remove rows from a table although have since found the example below;
http://www.datatables.net/examples/api/select_single_row.html
... i'd like to use the 'proper' way of removing rows from the datatable, although for some reason after i've deleted a row from the table, it doesn't then update the total # rows in the table, nor can you then show 'all' rows (it allows you to view upto the number you've removed - eg. if there are 57 rows, and I remove one (now 56 rows), it will let me view upto 50 rows but not 75 or all.
A JS error comes up when trying to view more than 50 rows (using the example above)...
Any ideas?
Is there the ability to pass oTable.fnDeleteRow(...) an instance of $('tr'); instead of what's in the example where you have to find the matching row in the fnGetNodes(..) function?
Great work otherwise, loving the pluggin! :)
http://www.datatables.net/examples/api/select_single_row.html
... i'd like to use the 'proper' way of removing rows from the datatable, although for some reason after i've deleted a row from the table, it doesn't then update the total # rows in the table, nor can you then show 'all' rows (it allows you to view upto the number you've removed - eg. if there are 57 rows, and I remove one (now 56 rows), it will let me view upto 50 rows but not 75 or all.
A JS error comes up when trying to view more than 50 rows (using the example above)...
Any ideas?
Is there the ability to pass oTable.fnDeleteRow(...) an instance of $('tr'); instead of what's in the example where you have to find the matching row in the fnGetNodes(..) function?
Great work otherwise, loving the pluggin! :)
This discussion has been closed.
Replies
Regards,
Allan
Did you have any luck with updating the total # rows when using the fnDeleteRow(...) function or the JS error when switching to show different # of rows to 'all'?
Thanks for your help - much appreciated! :)
Allan