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

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

5 Answers 133 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Jannik
Top achievements
Rank 1
Jannik asked on 07 Jul 2014, 10:33 AM
Can I jump to the next control (tabstop), after I've made a selection with the TAB-Key?

5 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 07 Jul 2014, 11:13 AM
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.
 
0
Jannik
Top achievements
Rank 1
answered on 07 Jul 2014, 11:19 AM
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?
0
Kalin
Telerik team
answered on 09 Jul 2014, 12:34 PM
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.
 
0
Senthil
Top achievements
Rank 1
answered on 28 Aug 2014, 06:25 AM
Can you please send a sample of customautocompletebox implemented ina project.
0
Kalin
Telerik team
answered on 29 Aug 2014, 02:06 PM
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.
 
Tags
AutoCompleteBox
Asked by
Jannik
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Jannik
Top achievements
Rank 1
Senthil
Top achievements
Rank 1
Share this question
or