class="do-not-sort-this" can't find it in the docs (not bSort case)
class="do-not-sort-this" can't find it in the docs (not bSort case)
I need to indicate in a header to do-not-sort-this (adding a class of the name, most likely). However, I didn't manage to find this mentioned in the docs. Does this exists? bSort is not friendly in my case because I have dynamic tables.
Please advice for a solution.
Please advice for a solution.
This discussion has been closed.
Replies
[code]
$(document).ready(function() {
$('#example').dataTable( {
"aoColumnDefs": [
{ "bSort": false, "aTargets": [ "do-not-sort-this" ] }
]
} );
} );
[/code]
This will become the recommended way of interacting with columns, rather than aoColumns - which as you have found can be a bit limiting. However aoColumns will remain and still be usable.
For all new features in 1.7: http://datatables.net/new/1.7
Allan
[code]
var oTable;
$(document).ready(function() {
oTable = $('.pagination').dataTable( {
'bLengthChange': false,
'sPaginationType': 'full_numbers',
'bSortClasses': false,
'aoColumnDefs': [{ "bSort": false, "aTargets": [ 'do-not-sort' ] }]
} );
$("tfoot input").keyup( function () {
oTable.fnFilter( this.value, $(this).parent().index() );
});
} );
[/code]
And I have [...], though it does not seem to work. I am using 1.7 beta 4.
Allan