Disable sorting
Disable sorting
venkats
Posts: 6Questions: 3Answers: 0
Hi,
How to disable sorting for datatable. Currently, I am invoking the datatable as below:
$('#tbl1').dataTable({ "pagingType": "full_numbers" });
I do not want the sorting feature, but require paging.
How to achieve it?
Thanks
This discussion has been closed.
Answers
You want to add
"ordering": false
to your initialization. Seeordering
.Example
If you only want to disable it for certain columns, see
columnDefs.targets
.I added bSort:false. Is this correct?
$('#tbl1').dataTable({ "pagingType": "full_numbers", "bSort": false });
shickey said: