bSortable = true not working when bSort is false.

bSortable = true not working when bSort is false.

pradeephpradeeph Posts: 1Questions: 0Answers: 0
edited August 2013 in FixedHeader
I have three columns in my table
i want to apply sorting on only 3ed column

I can implement this from following code
[code]
$(document).ready( function() {
$('#example').dataTable( {
"bSort": true,
"aoColumnDefs": [
{ "bSortable": false, "aTargets": [ 0 ] },
{ "bSortable": false, "aTargets": [ 1 ] }
] } );
} );
[/code]

instead of doing with above approach i want to do something like this:

[code]
$(document).ready( function() {
$('#example').dataTable( {
"bSort": false,
"aoColumnDefs": [
{ "bSortable": true, "aTargets": [ 2 ] }
] } );
} );
[/code]

if some body already implemented this approach, please share with me.

Replies

  • allanallan Posts: 63,601Questions: 1Answers: 10,486 Site admin
    When sorting is disabled ( bSort ) then whether an individual column is sorting enabled or not is irrelevant since sorting is disabled :-).

    Allan
This discussion has been closed.