RadSearchBox case insensitive?

2 posts, 0 answers
  1. Han
    Han avatar
    2 posts
    Member since:
    Aug 2010

    Posted 24 Jun 2013 Link to this post


    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?
  2. Plamen
    Plamen avatar
    2723 posts

    Posted 26 Jun 2013 Link to this post

    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.

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top