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

Kendo UI GridColumn TagHelper GridColumnCommandTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("column-command", ParentTag = "commands", TagStructure = TagStructure.NormalOrSelfClosing)]
[SuppressTagRendering]
public class GridColumnCommandTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseGridColumnCommandTagHelper

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@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.

C#
public GridColumnCommandTagHelper()

Properties

The class name of the command button.

C#
public string ClassName { get; set; }

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.

C#
public string Click { get; set; }

Specifies the Html Attributes for the command.

C#
public object HtmlAttributes { get; set; }

Specifies the function handler that will serialize the HTML attributes for the command.

C#
public string HtmlAttributesHandler { get; set; }

The class for the web font icon of the button.

C#
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.

C#
public string Name { get; set; }

The template of the command column.

C#
public string Template { get; set; }

Specifies the function template handler that will be used for serializing the column.

C#
public string TemplateHandler { get; set; }

The template of the command column.

C#
public string TemplateId { get; set; }

The template of the command column.

C#
public IHtmlContent TemplateView { get; set; }

Specifies the Text that will be displayed for the command button.

C#
public string Text { get; set; }

The name of the JavaScript function executed on initialization of the row which will determine whether the command button will be visible. The function receives a the data item object for the row as an argument.

C#
public string Visible { get; set; }

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)