How do I convert this table into searchable, sortable datatable?
How do I convert this table into searchable, sortable datatable?
Noodles12
Posts: 113Questions: 41Answers: 2
Can someone please help to convert this table into responsive, searchable, sortable datatable. Thanks.
This question has an accepted answers - jump to answer
Answers
Datatables doesn't support
rowspan
in thetbody
. See the HTML requirements for details. A similar question was posted earlier today. Maybe some of the responses will be helpful.Kevin
Thank you, I was looking at this forum and want to implement something similar. But the example doesn't work. Do you have link to this working example.
https://stackoverflow.com/questions/32088676/how-to-add-rowspan-in-jquery-datatables
"It is called RowsGroup and is located here: Datatables Forums. A live example is also included."
The first post in the tDatatables thread has a link to the code:
https://github.com/ashl1/datatables-rowsgroup
It is not supplied by Datatables but a third party developer. Looks like it hasn't changed in 8 years.
The provided test case:
http://live.datatables.net/bodanole/1/
Is using the nightly version of Datatables 2.0. It doesn't appear the plugin works with 2.0 which is not surprising. I updated the example to use DT 1.13.11 and it does seem to work:
https://live.datatables.net/bodanole/9512/edit
Any issues with the plugin will need to be supported by the developer. But I wouldn't expect much since develpment hasn't happened in 8 years.
Kevin