I am using the radgrid with filter and I am getting error on "|" character and "\" character is automatically removed/ignored by control. So please let me know list of character that are not being supported as input in filter textbox.
Thanks,
Manish
1 Answer, 1 is accepted
0
Antonio Stoilkov
Telerik team
answered on 27 Mar 2013, 06:43 AM
Hi Manish,
The GridFilterFunction.IllegalStrings array contains all strings that if entered will cancel the filtering.
" LIKE ", " AND ", " OR ", "\"", ">", "<", "<>", " NULL ", " IS "
You could modify the collection on Page_Init event and in order to change the illegal strings. Note that this is developer responsibility which could cause potential security problems.
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
GridFilterFunction.IllegalStrings = new string[] { " LIKE ", " AND ", " OR ", ">", "<", "<>", " NULL ", " IS " };
}
Greetings,
Antonio Stoilkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.