You can use RadDataFilter in its Unbound Mode. This will allow you to specify any kind of property names + types that the user will be able to choose from. Once the user has created his filtering criteria, all of the information will be stored in RadDataFilter.FilterDescriptors property.
RadDataFilter.FilterDescriptors contains IFilterDescriptors. They come in two varieties:
1. Simple FilterDescriptor's -- these are the leaf nodes of the three and contain information like FirstName IsEqualTo "John", i.e. they have four properties:
-- IsCaseSensitie (makes sense for string member only).
2. CompositeFilterDescriptor's -- these are classes which combine other IFilterDescriptors with a logical operator AND or OR. These are the ones that help you build a tree.
So, RadDataFilter will store everything that you see on the screen in these "property bag"-kind-of-objects. From then on -- you can read this information and use it in any possible way that you find appealing.
I hope this helps.
the Telerik team
Sharpen your .NET Ninja skills
! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>