Making a specific row unsortable

Making a specific row unsortable

bobthabuildabobthabuilda Posts: 1Questions: 0Answers: 0
edited June 2009 in General
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?


  • allanallan Posts: 54,712Questions: 1Answers: 8,558 Site admin
    Hi bobthabuilda,

    Sorry for the delay in getting back to you about this. How is this for what you want to do:

    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 :-)

This discussion has been closed.