SelectedItem = null

2 posts, 0 answers
  1. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 14 Oct 2014 Link to this post


    I would like to know if it's possible to not have a SelectedItem when the dropdown appear?!? What I'm trying to do is when the dropdown appear, if the user press the down key, I want the first to become selected not automatically when the dropdown appear...

  2. Nasko
    Nasko avatar
    698 posts

    Posted 17 Oct 2014 Link to this post

    Hello Alain,

    In order to achieve that functionality you could implement a custom HighlightBehaviour for the AutoCompleteBox. So, create a class that inherits from the default HighlighBehavior and override the FindHighlightedIndex method in which you could implement the needed custom logic. As you don't want to  highlight any of the filtered items the method should return -1. The last thing you need to do is to set that class as a static resource to the HighlightBehavior property. More detailed information you could find on the following link:

    I have also implemented that suggestion in a sample project so you can test it.

    I hope this will help you.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top