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

Viewing RadWindow causes TabIndex of dropdown arrow to be set to 0

3 Answers 73 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Sean Severson
Top achievements
Rank 1
Sean Severson asked on 06 May 2013, 06:09 PM
On my webform, I have a radPanelBar that contains a radComboBox with default styling.  After a RadWindow is displayed via client-side code, the TabIndex of the anchor in the RCBArrowCell gets set to 0.  The arrow can now receive the focus.  This results in having to tab twice in order to move the focus from the RadComboBox to the next control.  I am not setting the tabIndex initially or via code.  I also could not determine if this is a stylesheet being applied.

Thanks for your help.

Sean Severson

3 Answers, 1 is accepted

Sort by
0
Sean Severson
Top achievements
Rank 1
answered on 07 May 2013, 07:39 PM

It appears that some other controls have their tabIndex set to 0 after the RadWindow is displayed.  This isn't affecting the tab order for me, though.

I addressed the tabIndex issue with the RadCombo boxes with the following jQuery..

$(function () {
    $(".rcbArrowCell a").each(function (index) { this.tabIndex = -1; });
});

Sean Severson
0
Boyan Dimitrov
Telerik team
answered on 09 May 2013, 01:17 PM
Hello Sean,

Could you please confirm whether you are facing the tab index issue after applying the provided jQuery workaround?

I have tried to replicate the twice tabbing problem in order to go to the next control but no avail. I have attached a sample project that shows a RadWindow control when user clicks on the button. Once the RadComboBox got focused, only one click on the Tab button is needed to go to the next control within the RadWindow. Probably you have some other controls on the page or your scenario is different than the attached sample project. Could you please clarify whether you are reproducing that unusual behavior with the attached simplified page?


Regards,
Boyan Dimitrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Sean Severson
Top achievements
Rank 1
answered on 13 May 2013, 12:02 PM
Boyan,

The tabbing issue isn't with combo boxes inside the rad window.  Rather, it is with combo boxes outside of the rad window.  I modified the code you sent, but was not able to reproduce the issue.  I will have to dig deeper to try to determine what is setting the tabIndex property of my controls to 0.  Until then, the jQuery work around addresses the issue for me.

Sean Severson
Tags
ComboBox
Asked by
Sean Severson
Top achievements
Rank 1
Answers by
Sean Severson
Top achievements
Rank 1
Boyan Dimitrov
Telerik team
Share this question
or