Hi all,
I've found several threads regarding the usage of semi-colon ; within RadGrid Filter because normally it throws an "Index out of bounds" exception, see e.g. http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-filter-showing-script-error-when-enter-semicolon-in-search.aspx , http://www.telerik.com/community/forums/aspnet-ajax/grid/filtering-grid-on-character-causes-error.aspx , http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-filter-expression-with-quot-quot-i-e-with-semicolon-is-throwing-index-was-outside-the-bounds-of-the-array.aspx .
The proposed solution is some JavaScript code preventing the input of semi-colon. But of course this does not help if a user (/ hacker?) turned off JavaScript. I'd like to avoid this exception regardless of JavaScript. I also wonder why this problem does not seem to appear on http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/filtering/defaultcs.aspx ....?
Is there any other solution?
Many thanks!
I've found several threads regarding the usage of semi-colon ; within RadGrid Filter because normally it throws an "Index out of bounds" exception, see e.g. http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-filter-showing-script-error-when-enter-semicolon-in-search.aspx , http://www.telerik.com/community/forums/aspnet-ajax/grid/filtering-grid-on-character-causes-error.aspx , http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-filter-expression-with-quot-quot-i-e-with-semicolon-is-throwing-index-was-outside-the-bounds-of-the-array.aspx .
The proposed solution is some JavaScript code preventing the input of semi-colon. But of course this does not help if a user (/ hacker?) turned off JavaScript. I'd like to avoid this exception regardless of JavaScript. I also wonder why this problem does not seem to appear on http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/filtering/defaultcs.aspx ....?
Is there any other solution?
Many thanks!