简体   繁体   中英

Kendo tabstrip(index) not working

I've Two tabs, First tab where I've defined class = "k-state-active" . In 2nd tab, i've few buttons & Grid . Based on button click I need Grid (in the 2nd tab) to be populated (server side) after the postback. I've below JQuery to show 2nd tab after postback which is not working.

$(function () {
   $('Button').click(function () {
   var tabstrip = $("#tabstrip").kendoTabStrip().data("kendoTabStrip");​​
   tabstrip.select(1);
   });
});

With above code, I'm getting first tab instead of 2nd tab after button click. Please help.

remove this part of the code .kendoTabStrip()

Thus it will become:

$(function () {
   $('Button').click(function () {
   var tabstrip = $("#tabstrip").data("kendoTabStrip");​​
   tabstrip.select(1);
   });
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM