Displayed unfiltered suggestions

4 posts, 0 answers
  1. Szymon
    Szymon avatar
    4 posts
    Member since:
    May 2014

    Posted 09 Jul 2014 Link to this post

    Hi.

    So I got the control working neatly and user-friendly up to the point where I want to change z selection. In order to show other suggestions after focusing on the AutoCompleteBox I need to clear or change the SelectedText. This is somewhat cumbersome.
    After I get focus to my AutoCompleteBox with a already selected item, I'd like to display the whole unfiltered SuggestionSource which will get filtered only when the SelectedText is changed.

    How can I achieve this?

    King Regards,
    Simon
  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 14 Jul 2014 Link to this post

    Hi Simon,

    Showing only results, which are relevant to the criteria entered in RadAutoCompleteBox is natural for the control. To workaround this, you can set the EmptyFilterBehavior to EmptyFilterBehavior.ShowAll. Then you can subscribe to GotFocus event and clear the Text property. This way, when focused, the control text will be cleared and all suggestions will be shown in the dropdown.

    Best regards,
    Ves
    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. DevCraft banner
  4. Szymon
    Szymon avatar
    4 posts
    Member since:
    May 2014

    Posted 14 Jul 2014 in reply to Ves Link to this post

    Ves said:Hi Simon,
    To workaround this, you can set the EmptyFilterBehavior to EmptyFilterBehavior.ShowAll. Then you can subscribe to GotFocus event and clear the Text property. This way, when focused, the control text will be cleared and all suggestions will be shown in the dropdown. 


    I do understand this is how the control behaves, but it's just not user-friendly. Even more, deleting the Text property content on GotFocus is even more unintuitive.
    So is it possible to make the control behave as if the text was empty, but not clearing the text property, so to show all the possible suggestions?

    King regards,
    Szymon

  5. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 17 Jul 2014 Link to this post

    Hi Szymon,

    I am afraid it is not possible to make the control behave this way.

    Best regards,
    Ves
    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.

     
Back to Top