Click here to Skip to main content
14,385,236 members
Rate this:
Please Sign up or sign in to vote.
See more:
I want to disable the following item1 in the ContextMenu. But I din't find any relevant property for it in intellisense.

Telerik.WebControls.RadTreeViewContextMenu.ContextMenu contextMenu1 = new Telerik.WebControls.RadTreeViewContextMenu.ContextMenu();
contextMenu1.Name = "Menu";
Telerik.WebControls.RadTreeViewContextMenu.ContextMenuItem Item1 = new Telerik.WebControls.RadTreeViewContextMenu.ContextMenuItem();
Item1.Text = "Add New Item";
Item1.ID = "Add";

//Here i want to make this Item1 Enable false

contextMenu1.Items.Add(Item1);
RadTreeView1.ContextMenus.Add(contextMenu1);


Thanks in advance
Posted
Updated 24-Sep-15 3:26am
v5
Comments
Andy Lanng 24-Sep-15 10:38am
   
Telerik Example
Telerik Documentation
Looks like you need to cast as a RadMenuItem
   
This is a proprietary and commercial Telerik product, their customer service should answer your questions. Why asking them here?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100