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

Definition

Constructors

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

Properties

C#
public bool AlignToAnchor { get; set; }
C#
public PopupAnimation Animation { get; }
C#
public string AppendTo { get; set; }
C#
public INavigationItemAuthorization Authorization { get; }

Implements: INavigationItemComponent<ContextMenuItem>.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 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 string Filter { get; set; }
C#
public bool HighlightPath { get; set; }
C#
public int? HoverDelay { get; set; }
C#
public Action<ContextMenuItem> ItemAction { get; set; }

Implements: INavigationItemComponent<ContextMenuItem>.ItemAction

Child items collection.

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

Implements: INavigationItemContainer<ContextMenuItem>.Items

C#
public bool OpenOnClick { get; set; }
C#
public ContextMenuOrientation Orientation { get; set; }
C#
public ContextMenuScrollable Scrollable { get; }
C#
public SecurityTrimming SecurityTrimming { get; set; }

Implements: INavigationItemComponent<ContextMenuItem>.SecurityTrimming

C#
public string ShowOn { get; set; }
C#
public string Target { get; set; }
C#
public IUrlGenerator UrlGenerator { get; }

Implements: INavigationItemComponent<ContextMenuItem>.UrlGenerator

Methods

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)