I've got a radmenu, using onitemclick to handle events on the server - is there anyway to disable postback for the top menu item so there is only post back when clicking one of the items? Can't seem to find an easy solution for this...
Handle the OnClientItemClicking client-side event and cancel the event if the clicked Item is a root Item (canceling the OnClientItemClickcing event will prevent the postback):
function OnClientItemClicking(sender, eventArgs)
{
var item = eventArgs.get_item();
var rootItems = sender.get_items();
if (rootItems.indexOf(item) > -1)
{
eventArgs.set_cancel(true);
}
}
You could read more about the client-side functions and events used here: