Since the Grid filter is case-sensitive, i used the code below
RadGrid1.GroupingSettings.CaseSensitive = false;
Can we configure the same using webconfig,
so that radfilter is case-insensitive in the entire project?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
My gut feeling on this is that you can’t explicitly set properties of controls from the web.config.
I can come up with a couple ways to do this though:
1.) Make a custom control that inherits from RadGrid. In this control, default the GroupingSettings.CaseSensitive property to false. In this case; anywhere you use this control will have case insensitive filtering; unless its explicitly enabled.
2.) Make a custom control that inherits from radgrid, but instead of defaulting the CaseSensitive property to false; set it to a variable you have in your web.config. Such as:
This will make it specific to each application; however you’ll need to include the web.config key in each project you use it in.