Need help with aoColumnDefs
Need help with aoColumnDefs
Hi, I am trying to sort by default on column 0 and disable sort on column 1 as:
[code]
var oTable = $( "#res_table").dataTable( {
"sPaginationType": "full_numbers",
"bJQueryUI": true,
"sDom": \'<"H"lr>t<"F"ip>\',
"sScrollX": "100%",
"bScrollCollapse": true,
"sScrollY": "200px",
"aoColoumnDefs": [
{ "aTargets": [ 0 ], "iDataSort": 1},
{ "aTargets": [ 1 ], "bSortable": false}
]
});
[/code]
However where iDataSort works, bSortable false doesn't seem to since I am able to sort on column 1 anyways. What am I doing wrong?
[code]
var oTable = $( "#res_table").dataTable( {
"sPaginationType": "full_numbers",
"bJQueryUI": true,
"sDom": \'<"H"lr>t<"F"ip>\',
"sScrollX": "100%",
"bScrollCollapse": true,
"sScrollY": "200px",
"aoColoumnDefs": [
{ "aTargets": [ 0 ], "iDataSort": 1},
{ "aTargets": [ 1 ], "bSortable": false}
]
});
[/code]
However where iDataSort works, bSortable false doesn't seem to since I am able to sort on column 1 anyways. What am I doing wrong?
This discussion has been closed.
Replies