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

TabIndex and RadComboBox Problem

8 Answers 170 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Manuel
Top achievements
Rank 1
Manuel asked on 25 Jan 2017, 10:46 AM

Hello guys.

 

Im using Telerik 2015 Q3 for WPF (2015.3.930.45) and i have a problem with the tabindex inside mi form.

 

I have a form with several RadComboBox, textboxes...

 

If I place a textbox (Tabindex = 0), a radcombobox (Tabindex = 1) and anoche textbox (Tabindex = 2), when i press tab in the first textbox focus goes to the other textbox, and then, the next focused item is the radcombobox.

 

Its like ui always focus windows UI controls before radcombobox.

 

How can I solve this problem? I need that tabindex works like it should work...

 

Regars

8 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 30 Jan 2017, 08:23 AM
Hi Manuel,

I tested a similar setup locally and could not replicate such behavior. You can find the sample application I used for testing attached to my reply. Can you please check it out? Does it differ from the setup you are using?

Best Regards,
Stefan X1
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Marc Jr
Top achievements
Rank 1
answered on 28 Apr 2017, 06:13 PM
Hi,

I got the same issue 



Stefan X1 in your sample, you have to change order of your controls and keeping the tabindex property on to get it

 Here how I solve it :

You have to put controls in order in the xaml code and remove all tabindex property.

Ex :

 <TextBox Text="{Binding Text}" />
<TextBox Text="{Binding Text}" />
<telerik:RadComboBox ItemsSource="{Binding Players, Source={StaticResource MyViewModel}}" />

etc.

Then it will works fine.


0
Stefan
Telerik team
answered on 03 May 2017, 01:37 PM
Hi  Marc,

I am still unable to reproduce such behavior even when rearranging the controls. The attached video demonstrates my tests. However, I am glad that you have found a solution that meets your requirements. Nevertheless, if you have any concerns or need further assistance, feel free to approach me.

Best Regards,
Stefan X1
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
edjia
Top achievements
Rank 1
answered on 14 Mar 2019, 06:23 AM
<telerik:RadComboBox IsEditable="True" ItemsSource="{Binding Players, Source={StaticResource MyViewModel}}" TabIndex="1"/>

just add IsEditable="True" you can replicate such behavior

0
Dinko
Telerik team
answered on 18 Mar 2019, 03:48 PM
Hello Edjia,

Thank you for the provided details.

I manage to reproduce this behavior on my side. Therefore I have logged it in our Feedback Portal where you can track its progress. You can subscribe to the item in order to receive notification for its status changed.

As a workaround, you can subscribe to the loaded event of the RadComboBox and get the TextBox using ChildrenOfType<T>() extension method. Then you can set the TabIndex property of the TextBox. Check the following code snippet.
private void RadComboBox_Loaded(object sender, RoutedEventArgs e)
{
    var textBox = (sender as RadComboBox).ChildrenOfType<TextBox>().FirstOrDefault();
    textBox.TabIndex = 1;
}

Your Telerik Points have been updated for this report.

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Craig
Top achievements
Rank 1
answered on 13 Sep 2019, 02:44 PM

I am having the same problem with RadComboBox not honoring TabIndex.  It's especially troublesome when TabIndex is a bound property, and users have the ability to customize their tab order in the application.

A workaround that fixes the problem for me is simply converting the RadComboBox to a standard ComboBox. Maybe not ideal for some, if the dropdown heavily relies on Telerik-specific properties (if there even are that many), but my dropdowns are fairly basic so for me it seems to give me all the desired behavior I need.

Any reason why ComboBoxes shouldn't be used in place of RadComboBoxes?

0
Dinko
Telerik team
answered on 18 Sep 2019, 08:15 AM
Hello Craig,

I am happy to inform you that this behavior is already fix. The fix was included in the LIB version 2019.2.708.  The fix will also be available in our next official release R3 2019. You can download it from your account.

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Craig
Top achievements
Rank 1
answered on 23 Sep 2019, 05:51 PM
Very nice.  I am able to confirm TabIndex is indeed fixed for RadComboBox.  Thank you.
Tags
General Discussions
Asked by
Manuel
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Marc Jr
Top achievements
Rank 1
edjia
Top achievements
Rank 1
Dinko
Telerik team
Craig
Top achievements
Rank 1
Share this question
or