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?