Tablesorter with DataTables; data changes to "show all" after performing a sort.
Tablesorter with DataTables; data changes to "show all" after performing a sort.
jgoulet
Posts: 26Questions: 2Answers: 1
Ok, I'm fairly certain this comes down to something that I can [hopefully] solve in the initialization code. I am using Tablesorter to sort my DataTables columns. When I click the column header to sort, it changes to show all data, regardless of what value was in the "length" prior to the sort. All the paginate buttons are still there, and if I click on "Next" or a specific page number, it will go back to the value that is in the "length". I'm hoping there is a line or two of code that I can throw in the initialization to re-initialize the "length" value (if that makes sense). Here is the current initialization code:
[code]
$(document).ready(function() {
$("#institution").tablesorter({
headers: {
6: {
sorter: false
}
}
});
$('#institution').dataTable( {
"sScrollY": "200px",
"sPaginationType": "full_numbers",
"bScrollCollapse": true,
} );
} );
[/code]
[code]
$(document).ready(function() {
$("#institution").tablesorter({
headers: {
6: {
sorter: false
}
}
});
$('#institution').dataTable( {
"sScrollY": "200px",
"sPaginationType": "full_numbers",
"bScrollCollapse": true,
} );
} );
[/code]
This discussion has been closed.
Replies
Allan