table.columns.adjust().draw() issue
table.columns.adjust().draw() issue
ImpPhil
Posts: 12Questions: 4Answers: 0
in Bug reports
Possibly a bug. I'm periodically reloading data. On load complete if I call table.columns.adjust().draw() the current page is lost and the first page is displayed.
function reloadData() {
$('#loadingMessage').show();
table.ajax.reload(archiveDataLoaded, false);
}
function archiveDataLoaded() {
$('#loadingMessage').fadeOut(400);
// Calling this makes table forget which page it's on
//table.columns.adjust().draw();
}
This discussion has been closed.
Replies
Not a bug. You need to add the paging parameter as described in the
draw()
docs. Trytable.columns.adjust().draw(false);
Kevin
Thanks again.