Hi,
I have grid with filtering enabled. Filtering seems to be working well except when I use '>' or '<' chars in filter box.
When I type for example "> 50%" and select "contains" from the menu it returns all the rows in datasource. It seems that RadGrid.MasterTableView.FilterExpression is allways empty when using less than or greater than signs.
Also when I try to access the filter textbox on server-side(see below) it's empty when using those chars.
However the filter value is available in __EVENTARGUMENT hidden field.
So my question is:
Why FilterExpression is empty and how can easily fix filtering with less than and greater than signs?
By the way.. Using single apostrophe causes filtering not to work and javascript error because string is not escaped in postback function.
I'm using version 2008.2.826.35.
Regards,
Arsi
I have grid with filtering enabled. Filtering seems to be working well except when I use '>' or '<' chars in filter box.
When I type for example "> 50%" and select "contains" from the menu it returns all the rows in datasource. It seems that RadGrid.MasterTableView.FilterExpression is allways empty when using less than or greater than signs.
Also when I try to access the filter textbox on server-side(see below) it's empty when using those chars.
| GridFilteringItem filterItem = (GridFilteringItem)grid1.MasterTableView.GetItems(GridItemType.FilteringItem)[0]; |
| TextBox txtFilter = (TextBox)filterItem["answer"].Controls[0]; |
| string searchFor = txtFilter.Text; |
However the filter value is available in __EVENTARGUMENT hidden field.
- FireCommand:grid1$ctl00;Filter;answer|> 50%|Contains
So my question is:
Why FilterExpression is empty and how can easily fix filtering with less than and greater than signs?
By the way.. Using single apostrophe causes filtering not to work and javascript error because string is not escaped in postback function.
| __doPostBack('grid1','FireCommand:grid1$ctl00;Filter;answer|abc's|Contains') |
I'm using version 2008.2.826.35.
Regards,
Arsi