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
    14 posts
    Member since:
    Feb 2013

    Posted 27 Jul 2016 Link to this post

    Hi Telerik,

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


  3. Answer
    Nasko avatar
    727 posts

    Posted 29 Jul 2016 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:

    Hope this helps.

    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