Clear button within AutocompleteBox

3 posts, 1 answers
  1. Minh
    Minh avatar
    43 posts
    Member since:
    May 2014

    Posted 11 Dec 2015 Link to this post

    Hi, I'm wondering how do I change the template such that there's a clear button within the Autocomplete box, something like how the radmaskinput box are.

    [Search....           [x]]   <- AutocompleteBox
  2. Maarten
    Maarten avatar
    13 posts
    Member since:
    Feb 2013

    Posted 27 Jul Link to this post

    Hi Telerik,

    You have been thinking for more than half a year, so the perfect answer is ...?

    Maarten

  3. UI for WPF is Visual Studio 2017 Ready
  4. Answer
    Nasko
    Admin
    Nasko avatar
    588 posts

    Posted 29 Jul Link to this post

    Hi Maarten,

    Please, check the following example from our SDK Repository that demonstrates how to achieve similar to the desired by you functionality of RadAutoCompleteBox. Basically, the example demonstrates how to clear the current SelectedItem using a button - the same approach you could adapt for clearing the SearchText instead of the SelectedItem:
    https://github.com/telerik/xaml-sdk/tree/master/AutoCompleteBox/SingleSelectionModeWithClearButton

    Hope this helps.

    Regards,
    Nasko
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top