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

Kendo UI FileManagerViewsGridSettingsColumn TagHelper FileManagerViewsGridSettingsColumnTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("column", ParentTag = "filemanager-grid-columns", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("header-template", new string[] { "item-template" })]
[SuppressTagRendering]
public class FileManagerViewsGridSettingsColumnTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent, ITemplateComponent

Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseFileManagerViewsGridSettingsColumnTagHelper

Implements: ITagHelperITagHelperComponentITemplateComponent

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-filemanager name="filemanager">
    <views>
        <grid>
            <filemanager-grid-columns>
                <column field="name" encoded="false" />
            </filemanager-grid-columns>
        </grid>
    </views>
</kendo-filemanager>

Constructors

Initializes a new instance of the FileManagerViewsGridSettingsColumnTagHelper class.

C#
public FileManagerViewsGridSettingsColumnTagHelper()

Properties

If set to true the column value will be HTML-encoded before it is displayed. If set to false the column value will be displayed as is. By default the column value is HTML-encoded.

C#
public bool? Encoded { get; set; }

Specifies the field of the column.

C#
public string Field { get; set; }

The template which renders the column header content. By default the value of the title column option is displayed in the column header cell.

C#
public string HeaderTemplate { get; set; }

The template which renders the column header content. By default the value of the title column option is displayed in the column header cell. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string HeaderTemplateHandler { get; set; }

The template which renders the column header content. By default the value of the title column option is displayed in the column header cell. This option expects the ID of the script element that contains the template.

C#
public string HeaderTemplateId { get; set; }

The template which renders the column header content. By default the value of the title column option is displayed in the column header cell. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent HeaderTemplateView { get; set; }

If set to true the user can click the column header and sort the grid by the column field when sorting is enabled. If set to false sorting will be disabled for this column.

C#
public bool? Sortable { get; set; }

If set to true the user can click the column header and sort the grid by the column field when sorting is enabled. If set to false sorting will be disabled for this column.

C#
public string Template { get; set; }

If set to true the user can click the column header and sort the grid by the column field when sorting is enabled. If set to false sorting will be disabled for this column. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string TemplateHandler { get; set; }

If set to true the user can click the column header and sort the grid by the column field when sorting is enabled. If set to false sorting will be disabled for this column. This option expects the ID of the script element that contains the template.

C#
public string TemplateId { get; set; }

Configures the templates for the component.

C#
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }

Implements: ITemplateComponent.Templates

If set to true the user can click the column header and sort the grid by the column field when sorting is enabled. If set to false sorting will be disabled for this column. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent TemplateView { get; set; }

The text that is displayed in the column header cell. If not set the field is used.

C#
public string Title { get; set; }

The text that is displayed in the column header cell. If not set the field is used.

C#
public double? Width { 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)

Serializes the defined settings.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>