This is a migrated thread and some comments may be shown as answers.

sort event not toggling asc and desc

3 Answers 65 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Yong
Top achievements
Rank 1
Yong asked on 23 Mar 2021, 07:20 PM

hi all. new to kendo.

i have a simple grid w/pagination, and trying to add sorting. it seems to be working ok except:

1. the event never toggles asc and desc. it's always asc. anybody know why?

2. the little arrows never appear.

tia!

3 Answers, 1 is accepted

Sort by
0
Yong
Top achievements
Rank 1
answered on 23 Mar 2021, 09:00 PM
but now using process, it seems to be working fine. 
0
Accepted
Krissy
Telerik team
answered on 24 Mar 2021, 10:45 AM

Hi Yong, 

Please refer to our documentation and follow the step-by-step guide there on how to enable sorting. There is also a very helpful example of Grid sorting:
https://www.telerik.com/kendo-react-ui/components/grid/sorting/ 

If you are making multiple data operations, we recommend using process and onDataStateChange event, as shown here: https://www.telerik.com/kendo-react-ui/components/grid/data-operations/local-operations/ 

The arrows should appear automatically if the sort is used correctly, they are based on the information passed to the sort prop of the Grid:

https://www.telerik.com/kendo-react-ui/components/grid/api/GridProps/#toc-sort

If after following the steps in our documentation, there still are issues/unclear things, please send us an example of the Grid you want to implement sorting to, so that we can debug the code.

Hope this is helpful.

Regards,
Krissy
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Yong
Top achievements
Rank 1
answered on 24 Mar 2021, 05:13 PM
Thanks Krissy! Yup using process and the onDataStateChange event seems to have fixed the issue. Thanks for your help
Tags
General Discussions
Asked by
Yong
Top achievements
Rank 1
Answers by
Yong
Top achievements
Rank 1
Krissy
Telerik team
Share this question
or