ContextMenu
Class
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
C#
public class ContextMenu : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent, INavigationItemComponent<ContextMenuItem>, INavigationItemContainer<ContextMenuItem>
Inheritance: objectWidgetBaseContextMenu
Implements:
Inherited Members
Constructors
C#
public ContextMenu(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator, INavigationItemAuthorization authorization)
Properties
C#
public bool AlignToAnchor { get; set; }
C#
public PopupAnimation Animation { get; }
C#
public INavigationItemAuthorization Authorization { get; }
Implements:
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 bool HighlightPath { get; set; }
C#
public int? HoverDelay { get; set; }
C#
public Action<ContextMenuItem> ItemAction { get; set; }
Implements:
Child items collection.
C#
public IList<ContextMenuItem> Items { get; }
Implements:
C#
public bool OpenOnClick { get; set; }
C#
public ContextMenuOrientation Orientation { get; set; }
C#
public ContextMenuScrollable Scrollable { get; }
C#
public SecurityTrimming SecurityTrimming { get; set; }
Implements:
C#
public IUrlGenerator UrlGenerator { get; }
Implements:
Methods
C#
public override void VerifySettings()
Overrides:
Writes the HTML.
C#
protected override void WriteHtml(HtmlTextWriter writer)
Overrides:
Writes the initialization script.
C#
public override void WriteInitializationScript(TextWriter writer)
The writer.
Overrides: