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

save show/hide columns settings

1 Answer 74 Views
PersistenceFramework
This is a migrated thread and some comments may be shown as answers.
Gili
Top achievements
Rank 1
Gili asked on 17 Apr 2013, 07:57 AM
hi i use this  
http://www.telerik.com/help/silverlight/radgridview-how-to-show-hide-columns-outside-of-the-radgridview.html
 in my radgridview  in order to show/hide columns 
 how can i save this like i save other setting columns order/sorting/filltering with http://demos.telerik.com/silverlight/#PersistenceFramework/GridViewCustomSerialization
 

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 18 Apr 2013, 03:46 PM
Hi Gili,

The RadGridView persistence settings are controlled via a custom property provider, so it is up to you to extend it to cover your needs. The sample GridViewCustomPropertyProvider we demonstrate in our online demos, doesn't persist the visibility of the columns. So you need to find the property that controls the visibility of the column and make sure it is persisted in the GridViewCustomPropertyProvider Restore/ProvideValue methods implementation.

As this property is the GridViewColumn.IsVisible property, you'll have to define  a corresponding property in the ColumnProxy class and extend the Restore/ProvideValue methods to save its value. I attached a sample solution demonstrating this approach.

Kind regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
PersistenceFramework
Asked by
Gili
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or