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

Contains filter is working as Startswith filter

4 Answers 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Xorv
Top achievements
Rank 2
Xorv asked on 06 Nov 2012, 05:53 PM
Hi ,
I've a radgrid with many text data (ex. tommy, motomb). Now I also have fiter option for that grid.
Now in the filter text-box of the grid, if I type "tom" and select the filter as "Contains", the grid give the filter results as "tommy" only. Not both "tommy and "motumb".
Why this un-expected behaviour. Even when I have setup the required correctly??

Please guide.

Thanks

Edit: Corrected the word "mutumb" to "mutomb".

4 Answers, 1 is accepted

Sort by
0
Casey
Top achievements
Rank 1
answered on 06 Nov 2012, 07:00 PM
Hi Xorv,

From the example, that is the expected behavior for the contains filter. The string "tom" only exists in the first example, "tommy". 

"motumb" isn't returned because the grid is trying to search the text data to see if that exact string exists in it, and "tom" does not exist in "motumb". 

I hope this helps.

Casey
0
Xorv
Top achievements
Rank 2
answered on 07 Nov 2012, 09:41 AM
Hi Casey,

the word I used "mutumb" is incorrect. The correct and actual word is "mutomb". I have edited my question accordingly.
So, please throw some light on this.
0
Casey
Top achievements
Rank 1
answered on 07 Nov 2012, 01:02 PM
Xorv,

I'm not sure why the contains filter would exclude "mutomb". The only thing I can think of off of the top of my head would be if the text data was upper case for "mutomb" and lower case for "tommy" and the GroupingSettings-CaseSensitive property of the RadGrid hasn't been set to false. If the two words are the same case, or you have set that property to false, I'm not quite sure why the other value would be excluded.

Casey
0
Radoslav
Telerik team
answered on 09 Nov 2012, 01:36 PM
Hi,

I tried to reproduce the described issue but to no avail. I am sending you a simple example, please check it out and let me know what differs in your case.

Looking forward for your reply.

Regards,
Radoslav
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
Xorv
Top achievements
Rank 2
Answers by
Casey
Top achievements
Rank 1
Xorv
Top achievements
Rank 2
Radoslav
Telerik team
Share this question
or