Kendo UI context menu TagHelper GridContextMenuSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("context-menu", ParentTag = "kendo-grid", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("body", new string[] { "head", "groups" })]
[SuppressTagRendering]
public class GridContextMenuSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseGridContextMenuSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-grid name="grid">
<context-menu>
<body>
</body>
</context-menu>
</kendo-grid>
Child Tags
Constructors
Initializes a new instance of the GridContextMenuSettingsTagHelper class.
public GridContextMenuSettingsTagHelper()
Properties
Enables or disables the ContextMenu functionality.
public bool? Enabled { get; set; }
Fires when a sub menu or the ContextMenu gets opened and its animation finished.
public string OnActivate { get; set; }
Fires before a sub menu or the ContextMenu gets closed. You can cancel this event to prevent closure.
public string OnClose { get; set; }
Fires when a sub menu or the ContextMenu gets closed and its animation finished.
public string OnDeactivate { get; set; }
Fires before a sub menu or the ContextMenu gets opened. You can cancel this event to prevent opening the sub menu.
public string OnOpen { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
SerializeEvents method.