RadAutoCompleteBox: Jump to next control (TabStop) after selection?

6 posts, 0 answers
  1. Jannk
    Jannk avatar
    23 posts
    Member since:
    Jul 2014

    Posted 07 Jul 2014 Link to this post

    Can I jump to the next control (tabstop), after I've made a selection with the TAB-Key?
  2. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 07 Jul 2014 Link to this post

    Hi Jannk,

    Yes, there shouldn't be any problems with the explained scenario. After selecting an item with the Tab key you will be able to navigate to the next control after pressing the Tab key again.

    Hope this helps.

    Regards,
    Kalin
    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. DevCraft banner
  4. Jannk
    Jannk avatar
    23 posts
    Member since:
    Jul 2014

    Posted 07 Jul 2014 in reply to Kalin Link to this post

    Yup, but our company wants the box to jump into the next control just with ONE tab press, so selecting and moving to next control in one step. Can we do that?
  5. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 09 Jul 2014 Link to this post

    Hi Jannk,

    What I can suggest you in order to achieve that scenario would be to inherit from the AutoCompleteBox and override the OnKeyDown method. Inside will be able to check whether the Tab key was pressed and move the focus as demonstrated below (TextBox with Name TxtBox will be focused):

    public class CustomAutoCompleteBox : RadAutoCompleteBox
    {
        protected override void OnKeyDown(KeyEventArgs e)
        {
            if (e.Key == Key.Tab)
            {
                // move the focus
                var mp = (MainPage)Application.Current.RootVisual;
                mp.TxtBox.Focus();
            }
     
            base.OnKeyDown(e);
        }
    }

    Hope this helps.

    Regards,
    Kalin
    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.
     
  6. Senthil
    Senthil avatar
    1 posts
    Member since:
    Jul 2014

    Posted 28 Aug 2014 in reply to Kalin Link to this post

    Can you please send a sample of customautocompletebox implemented ina project.
  7. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 29 Aug 2014 Link to this post

    Hello Senthil,

    I noticed you have asked the same question in a General Feedback ticket. I have already replied you regarding this and will kindly ask you to check my reply there.

    Regards,
    Kalin
    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.
     
Back to Top
DevCraft banner