[英]Kendo tabstrip(index) not working
我有兩個選項卡,第一個選項卡已定義class = "k-state-active"
。 在第二個標簽中,我有幾個buttons
和Grid
。 基於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.