sort event not toggling asc and desc

4 posts, 1 answers
  1. Yong
    Yong avatar
    9 posts
    Member since:
    Mar 2021

    Posted 23 Mar Link to this post

    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!

  2. Yong
    Yong avatar
    9 posts
    Member since:
    Mar 2021

    Posted 23 Mar in reply to Yong Link to this post

    but now using process, it seems to be working fine. 
  3. Answer
    Krissy
    Admin
    Krissy avatar
    23 posts

    Posted 24 Mar Link to this post

    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/.

  4. Yong
    Yong avatar
    9 posts
    Member since:
    Mar 2021

    Posted 24 Mar in reply to Krissy Link to this post

    Thanks Krissy! Yup using process and the onDataStateChange event seems to have fixed the issue. Thanks for your help
Back to Top