bSortable = true not working when bSort is false.
bSortable = true not working when bSort is false.
pradeeph
Posts: 1Questions: 0Answers: 0
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.
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.
This discussion has been closed.
Replies
Allan