Set Default sorting column and set unsortable columns
Set Default sorting column and set unsortable columns
PierceMcGeough
Posts: 6Questions: 2Answers: 0
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?
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?
This discussion has been closed.
Replies
bSortable for disabling sort.
Both can be set to target certain columns.