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
     in my radgridview  in order to show/hide columns 
     how can i save this like i save other setting columns order/sorting/filltering with
  2. Tina Stancheva
    Tina Stancheva avatar
    3299 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.

Back to Top