We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

to disable click event for parent items in menu object

Thread ID:





79127 Jan 21,2009 09:16 PM Jan 24,2009 02:12 AM ASP.NET Web Forms (Classic) 1
Tags: Tools
Administrator [Syncfusion]
Asked On January 21, 2009 09:16 PM


I am trying the menu object with MenuItemBinding.I like binding ID and Parent ID fields for hierarchical data.

But is it possible to disable all events for parent items when using menu DataBindings.

what i want is, just the ultimate nodes should be clickable and the link cursor should appear just these ultimate nodes.

I am attaching the representative sample image.


Rekha P [Syncfusion]
Replied On January 24, 2009 02:12 AM

Hi Sinan,

Thank you for your interest in Syncfusion Products.

Yes, the disable of NavigateUrl for Menu parent items is possible by enabling NavigateUrl for parent items as null in ItemSelect event. Please refer the code snippet below to achieve this.

bool Menu1_ItemSelect(object oSender, Syncfusion.Web.UI.WebControls.Tools.MenuCommandEventArgs e)
if (e.Item.HasSubNodes) //Parent Item
e.Item.NavigateUrl = "";
return true;

Also please refer the sample below which illustrates the NavigateUrl to only child items in Menu.


We appreciate your patience and please let me know if this helps you.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.