Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Rameshwar-ghodke/a0590bd054fdd4ded97bf1f35ba46af4 to your computer and use it in GitHub Desktop.
Save Rameshwar-ghodke/a0590bd054fdd4ded97bf1f35ba46af4 to your computer and use it in GitHub Desktop.
disable for all columns sorting or one by one spacifing particular index count no. Disable sorting of particular data table column wise
var oTable = $('#zero_configuration_table_info').dataTable( {
// "ordering": false // disable for all columns sorting
"aoColumnDefs": [
{ "bSortable": false, "aTargets": [ 8] },
// { "width": "90", "aTargets": [0] }
// { "min-width": "120", "aTargets": [ 2,3,5,6] }
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment