TabIndex and RadComboBox Problem

9 posts, 0 answers
  1. Manuel
    Manuel avatar
    3 posts
    Member since:
    Jan 2017

    Posted 25 Jan 2017 Link to this post

    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

  2. Stefan
    Admin
    Stefan avatar
    1073 posts

    Posted 30 Jan 2017 Link to this post

    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.
  3. Marc Jr
    Marc Jr avatar
    5 posts
    Member since:
    Nov 2012

    Posted 28 Apr 2017 Link to this post

    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.


  4. Stefan
    Admin
    Stefan avatar
    1073 posts

    Posted 03 May 2017 Link to this post

    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.
  5. edjia
    edjia avatar
    6 posts
    Member since:
    Feb 2008

    Posted 14 Mar 2019 in reply to Stefan Link to this post

    <telerik:RadComboBox IsEditable="True" ItemsSource="{Binding Players, Source={StaticResource MyViewModel}}" TabIndex="1"/>

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

  6. Dinko
    Admin
    Dinko avatar
    1144 posts

    Posted 18 Mar 2019 Link to this post

    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.
  7. Craig
    Craig avatar
    4 posts
    Member since:
    Feb 2019

    Posted 13 Sep 2019 in reply to Dinko Link to this post

    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?

  8. Dinko
    Admin
    Dinko avatar
    1144 posts

    Posted 18 Sep 2019 Link to this post

    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.
  9. Craig
    Craig avatar
    4 posts
    Member since:
    Feb 2019

    Posted 23 Sep 2019 in reply to Dinko Link to this post

    Very nice.  I am able to confirm TabIndex is indeed fixed for RadComboBox.  Thank you.
Back to Top