Handle Enter

3 posts, 1 answers
  1. Joe Bohen
    Joe Bohen avatar
    62 posts
    Member since:
    May 2009

    Posted 11 Sep 2015 Link to this post

    Hi,

    I have an AutoCompleteBox where the selection mode is set to single, I wish to set focus on the next control when the enter key is selected when the AutoCompleteBox has a value selected.  Is this possible?

    Regards,

    Joe

  2. Answer
    Nasko
    Admin
    Nasko avatar
    585 posts

    Posted 15 Sep 2015 Link to this post

    Hi Joe,

    In order to achieve the desired behavior you need to handle the KeyUp event of RadAutoCompleteBox. Inside it you need to check if the currently pressed key is Enter and if there is SelectedItem - if both conditions are fulfilled the focus should be moved to the next UIElement.

    We have created a sample project that demonstrates that and you could run and evaluate it.

    Hopes this helps.

    Regards,
    Nasko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Joe Bohen
    Joe Bohen avatar
    62 posts
    Member since:
    May 2009

    Posted 18 Sep 2015 in reply to Nasko Link to this post

    Hi Nasko,  

    Thanks for the solution. 

    Regards,

    Joe

Back to Top