Kendo UI GridColumn TagHelper GridColumnCommandTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("column-command", ParentTag = "commands", TagStructure = TagStructure.NormalOrSelfClosing)]
[SuppressTagRendering]
public class GridColumnCommandTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseGridColumnCommandTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-grid name="grid">
<columns>
<column>
<commands>
<column-command name="custom" class-name="my-custom-class"></column-command>
</commands>
</column>
</columns>
</kendo-grid>
Constructors
Initializes a new instance of the GridColumnCommandTagHelper class.
public GridColumnCommandTagHelper()
Properties
The name of the JavaScript function executed when the user clicks the command button. The function receives a jQuery Event as an argument. The function context (available via the this keyword) will be set to the grid instance.
public string Click { get; set; }
Specifies the Html Attributes for the command.
public object HtmlAttributes { get; set; }
Specifies the function handler that will serialize the HTML attributes for the command.
public string HtmlAttributesHandler { get; set; }
The class for the web font icon of the button.
public string IconClass { get; set; }
The name of the command. The built-in commands are "edit" and "destroy". Can be set to a custom value.
public string Name { get; set; }
Specifies the function template handler that will be used for serializing the column.
public string TemplateHandler { get; set; }
The template of the command column.
public string TemplateId { get; set; }
The template of the command column.
public IHtmlContent TemplateView { get; set; }
Specifies the Text that will be displayed for the command button.
public string Text { 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: