Hi,
I'm having a problem with creating a complex filter expression in RadGridView.
The scenario can be described like this:
I have a DataTable containing columns Name (string), Address (string) and Finished (bool).
I'm giving the user the possibility to do a freetext search in the grid, where the user enters a text in a textbox, and I apply filters on columns Name and Address using Contains(entered string).
The above works fine. However, the problem is that I also have a checkbox "Show finished" that should always filter the data on the "Finished" column. I'm not able to get the correct filter expression for this, since when I add the Finished filter it's added as an OR filter with the other columns.
So in total I want a filter in the GridView that is something like this:
Finished=0 AND (Name LIKE '%text%' OR Address LIKE '%text%')
but I'm only able to get:
Finished=0 OR Name LIKE '%text%' OR Address LIKE '%text%'
Is this currently possible to do in some way?
Regards,
Tommy Savela
I'm having a problem with creating a complex filter expression in RadGridView.
The scenario can be described like this:
I have a DataTable containing columns Name (string), Address (string) and Finished (bool).
I'm giving the user the possibility to do a freetext search in the grid, where the user enters a text in a textbox, and I apply filters on columns Name and Address using Contains(entered string).
The above works fine. However, the problem is that I also have a checkbox "Show finished" that should always filter the data on the "Finished" column. I'm not able to get the correct filter expression for this, since when I add the Finished filter it's added as an OR filter with the other columns.
So in total I want a filter in the GridView that is something like this:
Finished=0 AND (Name LIKE '%text%' OR Address LIKE '%text%')
but I'm only able to get:
Finished=0 OR Name LIKE '%text%' OR Address LIKE '%text%'
Is this currently possible to do in some way?
Regards,
Tommy Savela