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

Grid column reordering not working fine

2 Answers 114 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jesil
Top achievements
Rank 2
Jesil asked on 19 Dec 2019, 11:09 AM

https://stackblitz.com/edit/react-1nyjvl?file=Hello.js

 

Hi,

i had a problem in getting the index position of grid column, when I using the column reordering property.  Actually it;s working fine, but when refreshing the page, column where reset. 

in my Grid: if I moving the ID column to near after any column, how can I  save the current position of ID after reloading.

2 Answers, 1 is accepted

Sort by
0
Accepted
Vladimir Iliev
Telerik team
answered on 23 Dec 2019, 07:25 AM

Hello Jesil,

 

Please note that the Grid provide a way to control it's state using props and events, however preserving the state between page reloads rely enterily on custom implementation based on the project requirements. Possible solution is to preserve the column reorder state in a cookie - for your convenience I created the following example which demonstrates this behavior:

Regards,
Vladimir Iliev
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
0
Jesil
Top achievements
Rank 2
answered on 26 Dec 2019, 06:16 AM
thank you.. now we can save current index position on DB  
Tags
General Discussions
Asked by
Jesil
Top achievements
Rank 2
Answers by
Vladimir Iliev
Telerik team
Jesil
Top achievements
Rank 2
Share this question
or