showing results for - "jquery datatable disable sorting on specific columns"
Marlene
05 Aug 2018
1jquery datatable disable sorting on specific columns
2
3"columnDefs": [
4    { "orderable": false, "targets": 2 }
5  ]
6
7JSFiddle Here
8
9<!--Script.js-->
10$('#table').DataTable( {
11"columnDefs": [
12    { "orderable": false, "targets": 2 }
13  ]
14  });
15<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
16<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
17<link href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" rel="stylesheet"/>
18
19<table class="table table-striped table-bordered post-list-table" id="table" >
20  <thead>                      
21    <tr>
22      <th>Title</th>
23      <th>Created At</th>
24      <th>Action</th>
25    </tr>
26  </thead>
27</table>
Diego
29 Oct 2019
1$('#id-of-my-table').DataTable({
2    "columnDefs": [
3        { "orderable": false, "targets": [0, 4, 5, 6] },
4        { "orderable": true, "targets": [1, 2, 3] }
5    ]
6});
7
queries leading to this page
datatable ascending order disable for a columnremove sorting from datatablesorting false in yajra datatables disableangular datatable disable sorting on columndisable sorting option on datatableremove sort from datatable columndatatable disable sorting on columndisable sorting datatablesdisable ordering in datatabledatatables remove sortingjquery datatable disable sortingdatatable disable orderdatatabel disable sorting for specific columnjquery datatable disable column sortingdatatables disable sorting on columndisable order in datatabledisable sorting in datatabledatatable default sorting desc disablehow to disable sorting in datatabledisable sort dattabledisable sorting for particular column datatablehow to disable sorting on a column in jquery datatablesjquery datatable disable sorting on specific columnsdatatables disable order after initializationhow to disable order datatabledisable order datatabledatatables disable ordering all columnsdatatable disable sortingdisable column 1 sorting in datatabledatatable disable sorting on first columnremove sorting from column in datatabledisable sorting datatables columndatatable by default sortign disabledatatables disable sortinghow to disable first column sorting in jquery datatablehow to disable order in datatabledisable ordering datatabledisable sorting on first column in jquery datatabledatatable default sorting disabledisable ordering of a column datatabledatatable cdn disable sorting on first column serversidejquery datatable remove sorting from columndatatable disable ordering on a columndatatable disable order columnremoving sorting on columns in jquery datatablehow to disable sorting in datatable for specific columndatatable disable sorting on column filterdisable sorting on datatable on specific column jquery datatable disable sorting for one column renderdisable datatable sortingdatatables disable sorting in one columndisable all sorting datatablesdatatable disable sorting for specific columndisabled ordering datatabledatatable specific column sort disablesorting disable in datatabledatatable remove sorting icon from first columndatatable sorting disabledisable sorting for a column in datatable jquerydatatables disable orderingdatatable deactivate sort by columnjquery datatable disable sorting on specific columns