AUTHOR: Tsvetomir Milchev
DATE POSTED: August 06, 2018
DESCRIPTION
RadGrid control considers quotes, "AND", "OR" and other similar meaningful statements in query context as illegal when filtering. These are the default values of this collection:
" LIKE , AND , OR ,\",>,<,<>, NULL , IS "
SOLUTION
You can remove the "AND" and "OR" statements from the forbidden filter string collection. This could be achieved in the Page_Load() event handler as following:
protected
void
Page_Load(
object
sender, EventArgs e)
{
GridFilterFunction.IllegalStrings =
new
string
[] {
" LIKE "
,
">"
"<"
"<>"
" NULL "
" IS "
};
RadGrid1.EnableLinqExpressions =
false
;
}
Telerik does not bear responsibility when you change this collection.
<
telerik:RadGrid
... >
FilterMenu
EnableTextHTMLEncoding
=
"false"
></
>
Resources Buy Try