Replies: 1 comment
-
Hi @Eralmidia, Yes, this can be achieved on application level with a workaround approach. It involves retemplating the sorting indicators in order to easily add a
The click handler:
This essentially sorts by the next direction just before the grid performs the sorting, which results in seemingly “skipping” the default "next". Thus, the order becomes None -> Descending -> Ascending -> None. Here you can find a small StackBlitz sample demonstrating this suggestion. I hope it helps! |
Beta Was this translation helpful? Give feedback.
-
I was just wondering if there is any way to change the order of asc and desc in the grid is applied when clicking the sort arrow? Ideally on a application level.
For instance, we have grid a column which displays a failure count. The users of this grid is commonly interested only in the rows with the highest number of failures. But by default clicking on the sorting arrow in the column sorts ascending first, then descending on the second click, resulting in the users have to click twice every time they need to sort at grid.
First click results in only rows which are of now interest to the user:

While second click gets us the interesting data:
Beta Was this translation helpful? Give feedback.
All reactions