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

How to save grid reordering?

1 Answer 819 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jiyo
Top achievements
Rank 2
Jiyo asked on 13 Mar 2020, 04:57 AM

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???

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 13 Mar 2020, 07:57 AM

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
Tags
General Discussions
Asked by
Jiyo
Top achievements
Rank 2
Answers by
Stefan
Telerik team
Share this question
or