Hi there,
I try to expand the parent and child items in client-side but it seems that you can't. This is my code:
Thanks for quick help!
Claudio
I try to expand the parent and child items in client-side but it seems that you can't. This is my code:
function
OnClientItemClicking(sender, eventArgs) {
var
item = eventArgs.get_item();
if
(item.get_expanded()) {
item.collapse();
}
else
{
item.expand();
}
var
panelBar = $find(
"ctl00_RadPanelBar1"
);
var
panelItem = panelBar.findItemByValue(
"AccountFooter"
);
panelItem.show();
panelItem = panelBar.findItemByValue(
"TopicFooter"
);
panelItem.hide();
var
parentItem = item.get_items().getItem(0);
parentItem.expand();
eventArgs.set_cancel(
true
);
// Cancel the postback
}
Thanks for quick help!
Claudio