Set Default sorting column and set unsortable columns

Set Default sorting column and set unsortable columns

PierceMcGeoughPierceMcGeough Posts: 6Questions: 2Answers: 0
edited November 2013 in DataTables 1.9
Is it possible to set the default column to sort once the page loads? I want to use the one datatable call for different tables across my site. Is it possible to add a th class to achieve this?

I also want to disable sorting on some columns and since i'm looking for the one datatables call to do everything, is there a class i can add to the th that will make it unsortable?

Replies

  • sfgolfersfgolfer Posts: 8Questions: 0Answers: 0
    aaSorting for default sort.

    bSortable for disabling sort.

    Both can be set to target certain columns.
This discussion has been closed.