In this example http://www.telerik.com/help/aspnet-ajax/grdapplyingdefaultfilteroninitialload.html
The default filter is set using
RadGrid1.MasterTableView.FilterExpression = "([Country] LIKE \'%Germany%\') ";
i am trying to capture the filter expression to store it in session and use it for resetting the filter when the control comes back to the page.
The value returned by RadGrid1.MasterTableView.FilterExpression is in the format "(it[\"City\"].ToString().Contains(\"Seattle\"))"
Also the value changes on different GridFunctions.
For an equalTo the format becomes "(Convert.ToString(it[\"City\"]) = \"Seattle\")"
Does the format keep changing for different functions?
I have to set the filter back in the filter textboxes when the control returns to the grid list page from a session variable.
How can i achieve this?
The default filter is set using
RadGrid1.MasterTableView.FilterExpression = "([Country] LIKE \'%Germany%\') ";
i am trying to capture the filter expression to store it in session and use it for resetting the filter when the control comes back to the page.
The value returned by RadGrid1.MasterTableView.FilterExpression is in the format "(it[\"City\"].ToString().Contains(\"Seattle\"))"
Also the value changes on different GridFunctions.
For an equalTo the format becomes "(Convert.ToString(it[\"City\"]) = \"Seattle\")"
Does the format keep changing for different functions?
I have to set the filter back in the filter textboxes when the control returns to the grid list page from a session variable.
How can i achieve this?