expand
Triggered when an item of a PanelBar is expanded.
Event Data
e.item Element
The expanding item of the PanelBar.
Attach expand event handler during initialization; detach via unbind()
<ul id="panelbar">
<li>Item 1
<ul>
<li>Sub Item 1</li>
<li>Sub Item 2</li>
<li>Sub Item 3</li>
</ul>
</li>
<li>Item 2
<ul>
<li>Sub Item 1</li>
<li>Sub Item 2</li>
<li>Sub Item 3</li>
</ul>
</li>
</ul>
<script>
// event handler for expand
var onExpand = function(e) {
// access the expanded item via e.item (HTMLElement)
// detach expand event handler via unbind()
panelBar.data("kendoPanelBar").unbind("expand", onExpand);
};
// attach expand event handler during initialization
var panelBar = $("#panelbar").kendoPanelBar({
expand: onExpand
});
</script>
Attach expand event handler via bind(); detach via unbind()
<ul id="panelbar">
<li>Item 1
<ul>
<li>Sub Item 1</li>
<li>Sub Item 2</li>
<li>Sub Item 3</li>
</ul>
</li>
<li>Item 2
<ul>
<li>Sub Item 1</li>
<li>Sub Item 2</li>
<li>Sub Item 3</li>
</ul>
</li>
</ul>
<script>
$("#panelbar").kendoPanelBar();
// event handler for expand
var onExpand = function(e) {
// access the expanded item via e.item (HTMLElement)
// detach expand event handler via unbind()
$("#panelbar").data("kendoPanelBar").unbind("expand", onExpand);
};
// attach expand event handler via bind()
$("#panelbar").data("kendoPanelBar").bind("expand", onExpand);
</script>