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

Set first control focus in pageview when RadTab selected

1 Answer 115 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Andrew Zhao
Top achievements
Rank 1
Andrew Zhao asked on 22 Jun 2010, 04:10 PM
I have a RadTabStrip control in which contails multiple RadTabs associated with the RadPageView. In each pageview, there are several web controls like textbox, checkbox. To support keyboard accessibility, when RadTab is selected by pressing enter key, a pageview is shown, and the first control in pageview needs to be set on focus for user to enter input. But so far, you have to tab through all RadTabs and then get focus on the controls in pageview. How can I change the tab order to the controls in pageview when the RadTab is selected?

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 25 Jun 2010, 11:43 AM
Hello Andrew,

I suggest you subscribe to OnClientTabSelected event of the tabstrip and in its handler:

function tabSelected(sender, args) {
   args.get_tab().get_pageView().get_element().firstChild.focus();
}

Note that focusable controls should be the first controls in the pageviews.

Kind regards,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TabStrip
Asked by
Andrew Zhao
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or