Making a specific row unsortable
Making a specific row unsortable
bobthabuilda
Posts: 1Questions: 0Answers: 0
I'm looking to create a table where when a particular row is clicked, a hidden row just below it appears with information content. However, I don't want the content in this row to be sorted by DataTables (it makes no sense).
How do I go about doing this? Is there a way to make particular rows unsortable?
How do I go about doing this? Is there a way to make particular rows unsortable?
This discussion has been closed.
Replies
Sorry for the delay in getting back to you about this. How is this for what you want to do:
http://datatables.net/1.5-beta/examples/api/row_details.html
The example code is shown on the page, but basically what you need to do is use the fnOpen() and fnClose() API functions. This functionality was one of the very first things I built in to DataTables as it was required for the project that I originally wrote DataTables for :-)
Regards,
Allan