New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

Methods and Properties

RadMenu Properties and Methods

RadMenu has a number of useful properties methods for iteracting with the menu and items. The following table lists these properties:

PropertyTypeDescription
AccessKeystringSets or returns a String that represents the shortcut key, also known as the accelerator key, for a specified object.
AutoScrollMinimumHeightintThe minimum available height that is needed to enable the auto-scroll.
AutoScrollMinimumWidthintThe minimum available width that is needed to enable the auto-scroll.
ClearSelectedItemvoidClears the selected item from the current RadMenu instance. Very useful when you want to clear the selected item after a postback.
ClickToOpenboolSpecifying if child items should open when the user clicks on their parent item, rather than just pointing the mouse over it.
ClientItemTemplatestringGets or sets the client template for displying the items of the RadMenu .
CollapseAnimationAnimationSettingsGets the settings for animation played when item closes.
CollapseDelaystringGets or sets the animation timeout after which the item starts to close.
EnableAutoScrollboolGets or sets a value indicating if an automatic scroll is applied if the groups are larger then the screen height. To use this with RadContextMenu, define DefaultGroupSettings.Height.
EnableOverlayboolGets or sets a value indicating if an overlay should be rendered (only in Internet Explorer).
EnableRootItemScrollboolGets or sets a value indicating if scroll is enabled for the root items.
EnableRoundedCornersboolSpecifying if child items should have rounded corners.
EnableScreenBoundaryDetectionboolSpecifies where screen boundary detection is enabled or not.
EnableSelectionboolGets or sets a value indicating if the currently selected item will be tracked and highlighted.
EnableShadowsboolSpecifying if child items should have shadows.
EnableTextHTMLEncodingboolSpecifies whether the text encoding when rendering menu item is enabled or not.
ExpandAnimationAnimationSettingsGets or sets a the animation settings when item closes.
ExpandDelayintGets or sets a delay in milliseconds between the mouse entering a RadMenuItem and its child items starting to expand
FlowItemFlowGets or sets the orientation of the root items
ItemsRadMenuItemCollectionGets or sets RadMenuItemCollection that contains the root items of the RadMenu .
ItemTemplatestringGets or sets the template for displaying the items in RadMenu .
RenderModeRenderModeSpecifies the RadMenu 's render mode. Using the LightWeight render mode will yield HTML5/CSS3 html and css.
SelectedItemRadMenuItemGets a RadMenuItem object that represents the selected item in the RadMenu control.
SelectedValuestringGets the RadMenuItem.Value of the selected item.
ShowToggleHandleboolGets the sets a value indicating whether a toggle handler is rendered when item has child items.

The following table lists most of the methods that RadMenu offers:

PropertyParameterReturn ValueDescription
GetAllItemsnoneIListReturns a list of all items in the menu, flattening out the menu hierarchy.
FindItemByTextstringRadMenuItemReturns the first item in the menu whose Text property matches the parameter.
FindItemByUrlstringRadMenuItemReturns the first item in the menu whose NavigateUrl property matches the parameter.
FindItemByValuestringRadMenuItemReturns the first item in the menu whose Value property matches the parameter.
LoadContentFilestringnonePopulates the RadMenu control from external XML file..
LoadXmlstringnoneLoads the control from a XML file.

See Also