Simple solution - just add the sorting parameters to the url: property of the datatable.
Only problem with this solution, is that when first time clicking the column header, to sort, it will be again sorted ASCending order, which it already was...
First click on the same header after using grid.markSorting(id, "asc") does not switch sort direction. Is there anything else that needs to be set in config or is this a bug?
Note: for grid.markSorting(id, "desc") - first click on the header works correctly
Comments
Simple solution - just add the sorting parameters to the url: property of the datatable.
Only problem with this solution, is that when first time clicking the column header, to sort, it will be again sorted ASCending order, which it already was...
Hello,
You can use apply markSorting method:
Works perfect. Thanks :-)
First click on the same header after using grid.markSorting(id, "asc") does not switch sort direction. Is there anything else that needs to be set in config or is this a bug?
Note: for grid.markSorting(id, "desc") - first click on the header works correctly
Please take a look at the snippet:
https://snippet.webix.com/n8ln8lly
Hi @dyankin ,
I can confirm the issue. Thank you for the report! We will fix it.