Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find TabStrip index

Tags:

kendo-ui

Is it possible to find the index of a tab in a KendoUI TabStrip? I need to find the index (number) of the tab that I select and I know that select() returns me current tab but I don' t know how to convert this to the number.

like image 206
OnaBai Avatar asked Nov 28 '12 13:11

OnaBai


2 Answers

Found the solution:

$("#tabstrip").data("kendoTabStrip").select().index();
like image 63
OnaBai Avatar answered Sep 26 '22 08:09

OnaBai


    function select(e) {
        var x = e.item;
        var index= $(e.item).index();
        $(".tabindex").val(index);
    }

as nemesv said in https://stackoverflow.com/a/15646629/2127493

like image 24
Azarsa Avatar answered Sep 24 '22 08:09

Azarsa