i want disable sort property in datatable api. use bsort:false disable sorting columns.
this works still first column show sort icon. why ?
$("#reportgrid").datatable({ "order": [],"bsort" : false, "idisplaylength": 10, "sdom": '<"top">rt<"bottom"lp><"clear">', });
i use code datatable.
here snapshot of grid. in first column having css of sorting_asc disable sorting.
so, how can remove sort icon first column ?
i found answer. bstorable false each of column icon removed.
$("#reportgrid").datatable({"order": [], "aocolumns": [ { "bsortable": false }, { "bsortable": false }, { "bsortable": false }, { "bsortable": false }, { "bsortable": false }, { "bsortable": false } ], "sdom": '<"top">rt<"bottom"lp><"clear">'});
Comments
Post a Comment