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

[Solved] how to get the value of TabStrip.SelectIndex ?

0 Answers 110 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Zhaoning
Top achievements
Rank 1
Zhaoning asked on 08 Mar 2012, 07:11 AM
there has a tabStrip with 7 pages in my view, and the nextButton want to change SelectIndex.

i can use client api to select one of tabstripitem, but i have to know current index of tabStrip.

  <script>
    function nextStep() {
        var tabStrip = $("#EditAssay").data("tTabStrip");
       

        var items = $(".t-item", tabStrip.element);
        alert(items.length);

        $.each(items, function (item) {
            alert(item.toString());  //this method is index        //how many members in item, and how can i get them.i get nothing from Manual
        });
       var index = tabStrip.SelectedIndex;                         //error
        tabStrip.select($(".t-item", tabStrip.element)[index + 1]);
    }
</script>

Tags
TabStrip
Asked by
Zhaoning
Top achievements
Rank 1
Share this question
or