Paging shown twice if .dataTable() is called consecutively
Paging shown twice if .dataTable() is called consecutively
borecast
Posts: 3Questions: 0Answers: 0
According to the API re-calling .dataTable() on a table object returns a reference to the existing datatable object.
see DataTables object retrieval in
http://datatables.net/new/1.7
But unfortunately calling .dataTable() multiple times adds the paging and the search box again.
Also DataTables 1.8.2 and the nightly build 1.8.3 is affected.
see DataTables object retrieval in
http://datatables.net/new/1.7
But unfortunately calling .dataTable() multiple times adds the paging and the search box again.
Also DataTables 1.8.2 and the nightly build 1.8.3 is affected.
This discussion has been closed.
Replies
Allan
I took a look at your example given - and it looks good in deed.
I will prepare a demo for this problem and post it within 2 days.
http://live.datatables.net/arazun/5/edit
The problem occurs if two or more tables have the same id.
I know that this is not allowed according to the HTML specification.
It happened to me accidentally when I used a Repeater control in my ASP.NET environment.
Perhaps you could add a warning message box for this case similar to the situation when reinitialisation is not allowed.
Thanks a lot for this great plugin.
Regards,
Allan