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

RadSearchBox case insensitive?

1 Answer 68 Views
SearchBox
This is a migrated thread and some comments may be shown as answers.
Han
Top achievements
Rank 1
Han asked on 24 Jun 2013, 09:18 AM
Hi,

Is it possible to make the filtering of the RadSearchBox case insensitive?
The results in my searchbox are all uppercase, but the user usually types in lowercase.

So if the user types "g101", there's a result "G101". When selecting the resultitem I get the resultitem in the postback. (e.Value is filled)
When typing "g101" and directly pushing ENTER only the e.Text is filled, not e.Value.

See attachment for example.

Can anyone help me with this?

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 26 Jun 2013, 02:20 PM
Hello Han,

 
You can make your search case insensitive if you handle the OnDataSourceSelect server event and select the items you want to see in the drop down according to your scenario.

As for your second question this behavior is observed because when you click on an item from the drop down the value is a known one but if you click on the search button the text that is written may be associated with many different items from the drop down and that is why it is returning value= null.

Hope this will explain the issues.

Regards,
Plamen
Telerik
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 the blog feed now.
Tags
SearchBox
Asked by
Han
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or