Tabbing with tabindex attribute in TabStrip

2 posts, 0 answers
  1. Artem
    Artem avatar
    11 posts
    Member since:
    Jan 2013

    Posted 30 Sep 2013 Link to this post

    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?
  2. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 02 Oct 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
Back to Top