This is a migrated thread and some comments may be shown as answers.

[Solved] what all characters are reserved in radgrid filter

1 Answer 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Manish
Top achievements
Rank 1
Manish asked on 22 Mar 2013, 07:45 AM
Hi Team,

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

Sort by
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.
Tags
Grid
Asked by
Manish
Top achievements
Rank 1
Answers by
Antonio Stoilkov
Telerik team
Share this question
or