There are two options.
A. You can do that if you use RadDomainDataSource (WCF RIA Services) with RadDataFilter. The filtering will be performed directly on the server. Here is an online example
In case you are interested in the new RadDomainDataSource control, here are its learning resources:
Each blog has a runnable sample project attached.
B. The other option would be to:
Create an unbound data filter. Let the user create his/her criteria through the UI. Use our extension method called Where
. It is located in the QueryableExtensions
class. Here is its signature:
public static IQueryable Where(this IQueryable source, CompositeFilterDescriptorCollection filterDescriptors)
So you have to pass an IQueryable
to this method.
The method will return another IQueryable
which will be filtered. You can take the Expression
from the IQueryable
that is returned.
You will have a LINQ Expression and you can decide what to do with it from here on.
I hope this helps.
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat
for a walk through all the exciting stuff we ship with the new release!