【问题标题】:KendoUI PanelBar Expand is not workingKendoUI PanelBar Expand 不起作用
【发布时间】:2013-07-18 16:43:22
【问题描述】:

我想在单击按钮时展开所有 kendoui 面板栏。我使用了一个类来初始化面板栏,并且我也使用了以下逻辑。 请尽快帮助我。

var ptemp = $("#paneltemp").kendoPanelBar().data("KendoPanelBar");

$("#expandbutton").click(function () {

    alert("Hello");
    var item = $("#paneltemp .t-item:eq(0)");
    ptemp.expand(item).activate(item);

});

请尽快帮助我。

【问题讨论】:

    标签: kendo-ui panelbar


    【解决方案1】:

    你应该这样做:

    var ptemp = $("#paneltemp").kendoPanelBar().data("KendoPanelBar");
    
    $("#expandbutton").click(function () {
        alert("Hello");
        ptemp.expand($("li", ptemp.element));
    });
    

    在此处运行示例:http://jsfiddle.net/OnaBai/P6ef6/

    【讨论】:

    • 您是否在 PanelBar 定义中添加了expandMode: "multiple"?请检查添加到答案中的示例的链接
    猜你喜欢
    • 2013-07-20
    • 2012-11-29
    • 1970-01-01
    • 2013-12-23
    • 1970-01-01
    • 1970-01-01
    • 2022-10-26
    • 1970-01-01
    • 2014-05-06
    相关资源
    最近更新 更多