Show suggestions with before text entered

4 posts, 0 answers
  1. Rob
    Rob avatar
    1 posts
    Member since:
    Aug 2014

    Posted 29 Jan 2015 Link to this post

    Hi

    is there a mechanism to display the suggestion list before the user enters any text? I'm looking for something like a ComboBox  / AutoCompleteBox hybrid control.

    Thanks,

    Rob.
  2. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    661 posts

    Posted 03 Feb 2015 Link to this post

    Hello Rob,

    You can show the suggestion list through the RadAutoCompleteBox.IsDropDownOpen property. For example: 

    this.autoCompleteBox.IsDropDownOpen = true;

    Note, that you should ensure the control has been initialized when you change the property.

    Regards,
    Ivaylo Gergov
    Telerik
     

    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.

     
  3. Teun Berkers
    Teun Berkers avatar
    1 posts
    Member since:
    Feb 2009

    Posted 27 Jan in reply to Ivaylo Gergov Link to this post

    Hey Ivaylo,

     I understand that this would open up the dropdown list but wouldn't it be empty since the default behavior is that when no text is entered, the suggestion list is empty?

     The way I read Rob's question is:

    1) How can we show a suggestion list -showing all suggestions - when no text has been entered YET.

    2) And filter the suggestion list according the user entered text while typing

     

    That way the control would be both a dropdown list with selectable items AND an autocomplete box showing the matching values from the list.

     How should one setup the component to enable this behaviour?

  4. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    661 posts

    Posted 01 Feb Link to this post

    Hello guys,

    I have attached a sample project to demonstrate that when you open the dropdown and no text is entered the suggestion list contains all the elements.

    I hope this helps. 

    Regards,
    Ivaylo Gergov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top