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

[Solved] Grid filters - how to ... or maybe "Feature Request" ...

1 Answer 46 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
scott
Top achievements
Rank 1
scott asked on 31 Aug 2010, 03:57 PM
Hi All.  I'm building this app that makes heavy use of grid filters.  One of the things a user can do is copy the filters out of a grid and apply them to other grids whenever they choose.  I would like to be able to serialize these filters to XML so I can persist them across user sessions. 

I would like to know if (and how) a ColumnFilterDescriptor can be serialized and deserialized.  If not then please consider adding a couple of methods that lets one accomplish this. 

I know about ColumnFilterDescriptor.ToString() - a corresponding ColumnFilterDescriptor.FromString() would be awesome.

Thanks -
Scott

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 03 Sep 2010, 08:27 AM
Hi scott,

Currently there is not way to serialized them out-of-the-box. Since each FilterDescriptor has only 5 properties you can write a simple program that stores this in XML and then reads it back. The the MemberType property should probably be serialized as a string containing the fully qualified type name.

I hope this helps.

Kind regards,
Ross
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
scott
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or