Posted on Dec 3 (permalink)
We are implemting grid filtering by giving filter expression in Need_DataSource event by setting following property -
Grid.MasterTableView.FilterExpression
which is set to something like the following
DataSourceProperty.ToString().ToUpper().StartsWith("Hi") where DataSourceProperty is a property of object, collection of which is set as Data Source to the grid just after setting filter expressio.
Now my problem is that we wnat to give a user option to put % in the filter values and the filter should work like "Like" opertor in Oracle. So the input may be "punit%was%" .
For this I have tried to set the property like below as suggested in documenattion at some place :-
RadGrid1.MasterTableView.FilterExpression = "([Country] LIKE \'%Germany%\') ";
Along with this I have also set grid LINQ expressions to false (EnableLinqExpressions=false) .
But this is not actually filtering the results and is just returning the results without filtering.
Thanks