System.Web.UI.MenuItems Namespace MenuItem Class
.NET Framework version 2.0
Sets or retrieves a value indicating whether a MenuItem object can be selected.
Inline |
<asp:menuitem selectable = true | false ... > |
Script |
MenuItem.Selectable [ = true | false ] |
This property accepts or returns only a boolean value: true if a MenuItem can be selected; otherwise, false. Default value is true.
Use the Selectable property to indicate whether a MenuItem can be selected in a Menu control.
When this property is set to false on a menu item, no action occurs when the menu item is selected ( clicked ). The pop-out image indicating child menu items for the menu item, if one exists, is still shown and available.
If you do not want any child menu items to appear for a menu item, set the Enabled property to false.
MenuItem Members