How to save grid reordering?

2 posts, 0 answers
  1. Jiyo
    Jiyo avatar
    17 posts
    Member since:
    Oct 2019

    Posted 12 Mar 2020 Link to this post

    Hiii,

    I'm using kendo react grid and what i need is if i reorder any column it should save somewhere(hopefully database) and persist on page reload.

    Is it possible???

  2. Stefan
    Admin
    Stefan avatar
    3008 posts

    Posted 13 Mar 2020 Link to this post

    Hello, Jiyo,

    This is possible using the onColumnReorder event, as we add an orderIndex field to the column collection which represents the new structure:

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

    Then this column configuration can be saved in the state or in the database.

    Please check the following GitHub item that has more details and example on this matter:

    https://github.com/telerik/kendo-react/issues/19

    I hope this is helpful.

    Regards,
    Stefan
    Progress Telerik

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top