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

Persist grid columns possible?

1 Answer 162 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 02 Jul 2014, 10:43 AM
Hi,

We are considering using Telerik UI for WPF but would like to know if it is possible to customise which columns are present in the grid and the ability to save the preference (so each user running the system can have their own view of the grid only showing information/columns they are interested in)

Many thanks,

Mike

1 Answer, 1 is accepted

Sort by
0
Boris
Telerik team
answered on 03 Jul 2014, 11:54 AM
Hello Mike,


In order to decide which GridView column is displayed in the grid you can use the IsVisible property of the column. In addition to serialize it along with the other preferences(sort, filter, resize, reorder, etc.) to RadGridView you will need a CustomPropertyProvider to define the properties that should be persisted by RadPersistenceFramework

You can examine our GridView Serialization demo which demonstrates custom serialization of properties for Sorting and Grouping, width and position change of the columns.

Please let us know if this helps.


Regards,
Boris Penev
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
Michael
Top achievements
Rank 1
Answers by
Boris
Telerik team
Share this question
or