i want to remove sorting for column whose heading is Action (including with arrow images)

i want to remove sorting for column whose heading is Action (including with arrow images)

suryasurya Posts: 8Questions: 0Answers: 0
edited December 2012 in DataTables 1.9
[quote]I am new to datatable plugin ,i am using 1.9.2,in my project one script page i had written below code for datatable this script is used along whole project ,so i can use plugin where i want[/quote]
[code]
$(document).ready(function () {
var oTable = $(".admintable").dataTable({ "aLengthMenu": [[5, 10, 25, 50, -1], [5, 10, 25, 50, "All"]], sPaginationType: "full_numbers", "bDestory": true,
"bRetrieve":true,
"sDom": 'Zlfrtip', "oListNav": {
sIdList: "myList",
sWrapperClass: null
}
});
if (oTable.fnGetData().length <= 10) {
$('#myList-nav').hide();
}
});
[/code]
[quote]below is html code of each page[/quote]
[code]



DateEvent
Action


for(i=0;i

Replies

  • suryasurya Posts: 8Questions: 0Answers: 0
    can any one please help me in this issue ,i am heck to do how to do this..
  • allanallan Posts: 63,391Questions: 1Answers: 10,450 Site admin
    The easiest way is to use a class on your `th` elements and use aoColumnDefs with bSortable . http://datatables.net/usage/columns

    Allan
  • suryasurya Posts: 8Questions: 0Answers: 0
    thanks allan it is working fine.
This discussion has been closed.