save show/hide columns settings

2 posts, 0 answers
  1. Gili
    Gili avatar
    14 posts
    Member since:
    Jan 2013

    Posted 17 Apr 2013 Link to this post

    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
     
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 18 Apr 2013 Link to this post

    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.

  3. DevCraft banner
Back to Top