0

I have a multi-level Kendo Panelbar; I need to expand the panelbar all the way down to one of its child nodes;

this is the best I could come up with, but it's limited to the first level of the panel item:

var panelBar = $(pnlMonitorId).data("kendoPanelBar");
panelBar.select(panelBar.element.children("li").eq(0));

var item = panelBar.select();
panelBar.expand(item);

any ideas?

thanks

4

1 回答 1

0

如果有人想知道,我认为缺乏对以下内容的支持是一个缺点:

panelbar.expand("...some deep node to expand to...")

无论如何,我通过以下方式解决了问题:

var panelBar = $("#myPanel").data("kendoPanelBar");

//2 > 7 > 32
panelBar.select($('[id="2"]'));
var item = panelBar.select();
panelBar.expand(item);

panelBar.select($('[id="7"]'));
item = panelBar.select();
panelBar.expand(item);

panelBar.select($('[id="32"]'));
item = panelBar.select();
panelBar.expand(item);
于 2014-06-12T23:25:23.577 回答