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

Columns Reorder

1 Answer 33 Views
Grid
This is a migrated thread and some comments may be shown as answers.
DogBizPro
Top achievements
Rank 1
DogBizPro asked on 31 Jan 2018, 09:28 PM

Can someone help me with the logic to save the column order when they are reordered?

We are using the grid for reporting and want to allow our clients to drag and drop the fields, sort them, etc. When there is a post back the order is reset. I have put in logic that works great of there is only one column that is reordered, but if there are 2 or more it doesn't work. There has to be a much easier way to save the current column order on post back?

We are using AutoGenerateColumns="true". Everything is working perfectly except moving more than one column. Please help ASAP!!

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 02 Feb 2018, 02:48 PM
Hello Stephanie,

Using the Persistence Framework you can store and restore the columns order as shown in this demo: Persisting Grid Settings.

Best regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
DogBizPro
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or