簡體   English   中英

Kendo Tabstrip(索引)不起作用

[英]Kendo tabstrip(index) not working

我有兩個選項卡,第一個選項卡已定義class = "k-state-active" 在第二個標簽中,我有幾個buttonsGrid 基於button單擊,我需要在回發后填充Grid (在第二個選項卡中)(服務器端)。 我在JQuery下面顯示回發后無法顯示的第二個選項卡。

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

使用上面的代碼,單擊按鈕后,我得到的是第一個選項卡,而不是第二個選項卡。 請幫忙。

刪除這部分代碼.kendoTabStrip()

因此它將變為:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM