0

I want to expand all kendoui panelbars on singleclick of button. i have used a class for initialization of panelbars and i have used the following logic for the same. please help me as soon as possible.

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

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

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

});

please help me as soon as possible.

4

1 回答 1

2

你应该做:

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

$("#expandbutton").click(function () {
    alert("Hello");
    ptemp.expand($("li", ptemp.element));
});

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

于 2013-07-18T17:34:38.193 回答