RadGrid with filters is bound to a collection of objects. When filter changes, there is an async postback during which I can determine the filters by examining FilterExpression property which has the values like this:
(iif(CatalogNumber == null, \"\", CatalogNumber).ToString().ToUpper().StartsWith(\"na\".ToUpper()))
What I want to do with this is filter the collection of object on server which the grid is bound to and looks like this:
private List<LineItem> _lineItems = new List<LineItem>
{
new LineItem { Id="4300", CatalogNumber="ab" },
new LineItem { Id="4301", CatalogNumber="naf-1"}
}
};
I am not sure how FilterExpression can be used in this situation and why it has these "iif" and so on. I don't want brute force method of parsing it out and thinking that there maybe a reason why it has this format. How can I plug it in to the custom collection to filter it?
-Stan