Key simulation

2 posts, 0 answers
  1. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 06 Aug 2014 Link to this post

    Hi,

    I created a usercontrol which contain a RadAutoCompleteBox and a RadButton. When I click on the button, I would like to simulate the ENTER key of the RadAutoCompleteBox to keep the behavior of the ENTER key on the control... How can I do that???

    Thank's
    Alain
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 11 Aug 2014 Link to this post

    Hi Alain,

    In general, clicking Enter key while typing in the input field of the AutoCompleteBox selects the first filtered item. You could simulate this behavior on button click by getting the FilteredItems of the AutoCompleteBox and add the first item from the collection to the SelectedItems of the control. 

    If this is not the case, I'd ask you to explain in more details the scenario and the required result.

    I am looking forward to your reply.

    Regards,
    Yana
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top