DeleteButton?

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

    Posted 21 Oct 2014 Link to this post

    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
  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 24 Oct 2014 Link to this post

    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.

     
  3. Joe
    Joe avatar
    4 posts
    Member since:
    May 2014

    Posted 24 Oct 2014 in reply to Ves Link to this post

    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
  4. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 29 Oct 2014 Link to this post

    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.

     
  5. Joe
    Joe avatar
    4 posts
    Member since:
    May 2014

    Posted 29 Oct 2014 in reply to Ves Link to this post

    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
  6. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 30 Oct 2014 Link to this post

    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.

     
  7. Joe
    Joe avatar
    4 posts
    Member since:
    May 2014

    Posted 30 Oct 2014 in reply to Ves Link to this post

    Hi Ves,

    I just tested again in my app and it seems to work with the first character only a few times and then after a few tries exhibits the behavior I've described.  It doesn't seem to be consistent.  I will see if I can repro this in a sample app and let you know.  I appreciate all of your help so far.

    Thanks,
    Joe
Back to Top