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

Tabbing with tabindex attribute in TabStrip

1 Answer 157 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Artem
Top achievements
Rank 1
Artem asked on 30 Sep 2013, 01:24 PM
The question is how can I override default behavior of TabStrip control to select tabs with TAB on the keyboard?
The default behavior actually allows to switch between tabs using Left/Right keys.
What I'm aiming is to give users an ability to "Tab" through all page controls with the keyboard and then activate this or that tab with Enter. In other words I would prefer to use tabindex attribute but as far as I can see <li> within <ul class="k-tabstrip-items"> are actually tabs, means setting ta bindex for them won't highlight them by default for users. Could you please advise an approach to achieve this?

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 02 Oct 2013, 09:38 AM
Hello Artem,

You cannot override the default behavior of the TabStrip

What you are trying to achieve could be implemented using the API function of the widget. You can attach global handler to the body of the page and listen for specific key presses then use the select method to set select the tab you want based on the currently selected (same method no parameters gets the selected).

Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TabStrip
Asked by
Artem
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or