New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Menu

Class

Definition

Constructors

C#
public Menu(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator, INavigationItemAuthorization authorization)
Parameters:viewContextViewContextinitializerIJavaScriptInitializerurlGeneratorIUrlGeneratorauthorizationINavigationItemAuthorization

Properties

C#
public PopupAnimation Animation { get; }
C#
public INavigationItemAuthorization Authorization { get; }

Implements: INavigationItemComponent<MenuItem>.Authorization

C#
public bool CloseOnClick { get; set; }

Sets the field of the data item that provides the content of the Menu items.

C#
public string DataContentField { get; set; }

Sets the field of the data item that provides the icon class of the menu items.

C#
public string DataIconClassField { get; set; }

Sets the field of the data item that provides the icon name of the menu items.

C#
public string DataIconField { get; set; }

Sets the field of the data item that provides the image url of the Menu items.

C#
public string DataImageUrlField { get; set; }
C#
public DataSource DataSource { get; }
C#
public string DataSourceId { get; set; }

Sets the field of the data item that provides the sprite css class of the Menu items.

C#
public string DataSpriteCssClassField { get; set; }

Sets the field of the data item that provides the text of the Menu items.

C#
public string DataTextField { get; set; }

Sets the field of the data item that provides the url of the Menu items.

C#
public string DataUrlField { get; set; }
C#
public string Direction { get; set; }
C#
public bool HighlightPath { get; set; }
C#
public int? HoverDelay { get; set; }

Specifies the position of the icon in the Menu items using the text content as a reference.

C#
public IconPosition? IconPosition { get; set; }
C#
public Action<MenuItem> ItemAction { get; set; }

Implements: INavigationItemComponent<MenuItem>.ItemAction

Child items collection.

C#
public IList<MenuItem> Items { get; }

Implements: INavigationItemContainer<MenuItem>.Items

C#
public MenuOpenOnClick OpenOnClick { get; }
C#
public MenuOrientation Orientation { get; set; }
C#
public PopupCollision PopupCollision { get; }
C#
public MenuScrollable Scrollable { get; }
C#
public SecurityTrimming SecurityTrimming { get; set; }

Implements: INavigationItemComponent<MenuItem>.SecurityTrimming

C#
public IUrlGenerator UrlGenerator { get; }

Implements: INavigationItemComponent<MenuItem>.UrlGenerator

Methods

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

C#
public override void VerifySettings()

Overrides: WidgetBase.VerifySettings()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The writer.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)