Convert Telerik Grid FilterExpression To Predicate Expressions

Posts   
 
    
kraffay
User
Posts: 8
Joined: 15-Jun-2012
# Posted on: 20-Jun-2012 19:33:43   

I want to bind a Telerik Rad Grid to a GenPro Entity Collection. I only want the records that need to be displayed in the grid.

For example, I have over 1000 customers when my grid first loads. I am implementing manual paging, so only the rows for a given page are returned when the grid is bound to the data source.

However, when a user filters a column in the Telerik grid, I want to pass that filter to GenPro in the form of a RelationPredicateBucket. The Telerik filters are in these form, for example:

"(iif(CustomerName == null, \"\", CustomerName).ToString().Contains(\"jas\"))"
"(iif(CustomerName == null, \"\", CustomerName).ToString().StartsWith(\"jas\"))"
"(iif(CustomerName == null, \"\", CustomerName).ToString() <= \"jas\")"

Is there anyway to convert these filters (they are of type DataColumn.Expression) to Predicate Expressions?

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 20-Jun-2012 19:43:07   

This is an ASP.NEt grid, right?

Are you using an LLBLGenProDataSource for databinding?