I ran into an interesting issue recently. Viewable at http://wp.arcanewonders.com/mw/
If you filter the second table using the "Search all fields:" search field (its the default field added by DataTables) and then try to sort the results the table doesn't update. It sorts it internally but doesn't refresh the view. If you clear the field you can see it has sorted the data but just not displayed it.
Is there a way to override the display and force a refresh? Or is it a configuration issue? This is the code that I am using to init the table
If you filter the second table using the "Search all fields:" search field (its the default field added by DataTables) and then try to sort the results the table doesn't update. It sorts it internally but doesn't refresh the view. If you clear the field you can see it has sorted the data but just not displayed it.
Is there a way to override the display and force a refresh? Or is it a configuration issue? This is the code that I am using to init the table
listTable.dataTable({
oLanguage: { "sSearch": "Search all fields:"},
sDom: 'fptil',
sScrollY: "300px",
bPaginate:false,
aoColumnDefs: [{
aTargets:[0,1,2,3],
bSortable:true
}, {
aTargets:[4,5],
bSortable:false
}],
fnRowCallback:function(nRow) {
var tr = $(nRow)
$('td:nth-child(5)', tr).text(getCardAmount(tr))
}
})