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

Search In RadGrid

3 Answers 106 Views
Grid
This is a migrated thread and some comments may be shown as answers.
manish
Top achievements
Rank 1
manish asked on 11 Feb 2010, 02:39 PM
Hi

Special character creating problem while searching in grid.
Sample file is attached.

In RemoteIDNumber search box I put    977 and searched with contains its giving me the right records, its OK.
but what i want is
when i give 97715 it should give me two records like -977-15 and 9771559 (first two record in attached file)
but its giving only 9771559. I have to ignore the special characters.

How can i do this type of serach by ignoring special characters? 

Regards
Manish sain

3 Answers, 1 is accepted

Sort by
0
robertw102
Top achievements
Rank 1
answered on 11 Feb 2010, 04:16 PM
I believe this help article should be of use to you:


It looks like you'll need to create your own custom filter and add it to the list.

I hope that helps.
0
maria mazilu
Top achievements
Rank 1
answered on 11 Feb 2010, 10:37 PM
I'm having the same problem. I want to filter by ignoring some special characters like â,ă,ţ,ş,î and replacing them with a,t,s,i, respectively. I thought at regular expressions. But I don't know how to do this to obtain the desired results. To be more specific: if in the filter textbox I type "strada" in the items of the corresponding column of the grid there should be records the contain also "stradă".

Thank you and best wishes!
0
maria mazilu
Top achievements
Rank 1
answered on 15 Feb 2010, 10:05 PM
I might suggest trying to replace the "-" with ""(nothing) similarly to what I did in my case. Se the thread I've opened
http://www.telerik.com/community/forums/aspnet-ajax/grid/filter-by-a-regular-expresion.aspx and the solution I've thought to be the one for me. I think you could use it also.

Good luck


Tags
Grid
Asked by
manish
Top achievements
Rank 1
Answers by
robertw102
Top achievements
Rank 1
maria mazilu
Top achievements
Rank 1
Share this question
or