This is a migrated thread and some comments may be shown as answers.

Clear button within AutocompleteBox

2 Answers 321 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Minh
Top achievements
Rank 1
Minh asked on 11 Dec 2015, 03:14 PM
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 Answers, 1 is accepted

Sort by
0
Maarten
Top achievements
Rank 2
answered on 27 Jul 2016, 10:50 PM

Hi Telerik,

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

Maarten

0
Accepted
Nasko
Telerik team
answered on 29 Jul 2016, 11:01 AM
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.
Tags
AutoCompleteBox
Asked by
Minh
Top achievements
Rank 1
Answers by
Maarten
Top achievements
Rank 2
Nasko
Telerik team
Share this question
or