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

DeleteButton?

5 Answers 58 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Joe
Top achievements
Rank 1
Joe asked on 21 Oct 2014, 10:12 PM
Is there a DeleteButton built into the AutoCompleteBox?  I would like to allow users to clear the entire box by tapping an X button on the right side of the AutoCompleteBox.  Is this functionality available and if so, how do I enable it?

Thanks,
Joe

5 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 24 Oct 2014, 08:37 AM
Hi Joe,

This is the default behavior of the control: when the user starts typing, the delete button is displayed and allows them to delete the entire content of the TextBox. Do you experience any issues with it? If so, please let us know about the details.

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.

 
0
Joe
Top achievements
Rank 1
answered on 24 Oct 2014, 02:44 PM
Hi Ves,

I am developing a Windows Phone 8.1 application (not Silverlight, not Universal), and I've had success importing the Universal controls and using the AutoCompleteBox.  The only problem I've had so far is that the DeleteButton never appears.  I have tested both in emulator and on device and the DeleteButton doesn't show in either case.  Is the Universal control package expected to work on projects of this type?

Thanks,
Joe
0
Ves
Telerik team
answered on 29 Oct 2014, 12:26 PM
Hi Joe,

Thanks for the clarification. Indeed, the control is designed, so that in Windows Phone 8.1 there is no Delete button. So, the only option here would be to re-template the control.

Please, find attached an updated version of our First Look example, showing how to re-template the control, so that the Delete button appears.

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.

 
0
Joe
Top achievements
Rank 1
answered on 29 Oct 2014, 06:02 PM
Hi Ves,

Thanks very much for providing this sample.  I have applied this style and now the DeleteButton behavior works as expected.

However making this change seems to have introduced a different problem.  When I set FilterStartThreshold to 0, suggestions are not shown until typing 2 characters.  If I delete a character and only have one character, suggestions based on that one character are shown.  I tested other values of FilterStartThreshold and this behavior only seems to occur with value of 0, and only with the styles to enable the DeleteButton applied.

Do you have any ideas?

Thanks,
Joe
0
Ves
Telerik team
answered on 30 Oct 2014, 12:02 PM
Hi Joe,

I can't seem to reproduce the problem. Here's a video of how it works on my end. Let me know if I am missing something.

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.

 
Tags
AutoCompleteBox
Asked by
Joe
Top achievements
Rank 1
Answers by
Ves
Telerik team
Joe
Top achievements
Rank 1
Share this question
or