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

When to Save Layout

1 Answer 132 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Chris Kirkman
Top achievements
Rank 1
Chris Kirkman asked on 14 Dec 2017, 09:56 PM
I have a need to save the layout of the grid any time the user adds/removes columns, resizes column widths and/or rearranges the order of columns.  I already know to use the grid.SaveLayout() method.  That's not the issue, I just don't want to have to listen to so many events to be able to know when to call SaveLayout().

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 15 Dec 2017, 07:50 AM
Hello, Chris,

Thank you for writing.  

In order to detect when a column is added, removed or moved you can handle the RadGridView.Columns.CollectionChanged event. The NotifyCollectionChangedEventArgs.Action argument indicates what is the change. As to the columns resizing, you can handle the RadGridView.ColumnWidthChanged event.

I hope this information helps. Should you have further questions I would be glad to help.
 
Regards,
Dess
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
GridView
Asked by
Chris Kirkman
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or