You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 2, 2025. It is now read-only.
But there appears to be some kind of bug that refreshes the table after sorting columns when using "order" in dtOptions.
Steps to reproduce:
Take your row click event example (or any other example should work) and add this line to it in order to add default ordering: $scope.dtOptions.order = [[1, "desc"], [0,"asc"]];
Then sort the table by clicking on one of the columns and after that click on one of the rows.
You should observe that a request is sent to server to get the data and the table is reloaded.
The text was updated successfully, but these errors were encountered:
Nice catch! 👍
Mmh it's seems like it only happens when a $digest cycle is fired. Indeed, the directive will consider that a change has been made, thus refreshing the table.
Hello! It looks like I still experience this issue in v0.5.7. The issue is exactly the same as described and I think it might not be related to #146
EDITED: ok so the problem only occurs if you pass multi-column default sorting like this: { order: [[1, 'asc'], [2, 'desc']] }
or even one column but in a multi array like this: { order: [[1, 'asc']] }
but it works fine if you pass only one column in a single array: { order: [1, 'asc'] }
Hello!
This is what I'm trying to do:
http://www.datatables.net/examples/basic_init/table_sorting.html
But there appears to be some kind of bug that refreshes the table after sorting columns when using "order" in dtOptions.
Steps to reproduce:
$scope.dtOptions.order = [[1, "desc"], [0,"asc"]];
You should observe that a request is sent to server to get the data and the table is reloaded.
The text was updated successfully, but these errors were encountered: