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
If c2 is not sortable, and the user order the table by c3, jquery datatables will send index 2 to server.
As the model will be decorated with [DataTableResolver(OrderableColumns = new[] { nameof(C1), nameof(C3), nameof(C4) }
As index 2 is sent to the server by datatables writing in the data callback: JSON.stringify(data)
Then the server will wrongly assume we want to order on C4, whereas we clicked on C3 header.
The text was updated successfully, but these errors were encountered:
anna-git
changed the title
If one column is not sortable between other sortable columns, wrong column is considered server side
If one column is not sortable between other sortable columns, wrong column is processed server side
Aug 16, 2018
If c2 is not sortable, and the user order the table by c3, jquery datatables will send index 2 to server.
As the model will be decorated with
[DataTableResolver(OrderableColumns = new[] { nameof(C1), nameof(C3), nameof(C4) }
As index 2 is sent to the server by datatables writing in the data callback:
JSON.stringify(data)
Then the server will wrongly assume we want to order on C4, whereas we clicked on C3 header.
The text was updated successfully, but these errors were encountered: