Find TabStrip index

2019-06-15 13:16发布

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.

标签: kendo-ui
2条回答
倾城 Initia
2楼-- · 2019-06-15 13:35

Found the solution:

$("#tabstrip").data("kendoTabStrip").select().index();
查看更多
萌系小妹纸
3楼-- · 2019-06-15 13:50
    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

查看更多
登录 后发表回答