I have a panelbar on a usercontrol that fill it's items from an xml file, it has the ExpandMode="SingleExpandedItem".
when I implement the onitemclick server side event with "navpanelBar_ItemClick" event handler the panel stopped expanding ..
Is there a reason for that .
below is the code of this
when I implement the onitemclick server side event with "navpanelBar_ItemClick" event handler the panel stopped expanding ..
Is there a reason for that .
below is the code of this
<telerik:RadPanelBar ID="navpanelBar" Runat="server" |
ExpandMode="SingleExpandedItem" Width="100%" |
OnClientItemClicking="panelclicking" onitemclick="navpanelBar_ItemClick" > |
</telerik:RadPanelBar> |
<script type="text/jscript" language="javascript"> |
function panelclicking(sender, e) |
{ |
var itemval = e.get_item().get_value(); |
if (!itemval) |
{e.set_cancel(true); } |
else |
{e.set_cancel(false);} |
} |
</script> |
Thanks in advance