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?

Replies

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    Hi bobthabuilda,

    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
This discussion has been closed.