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

Kendo UI GanttColumn TagHelper GanttColumnTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

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

Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseGanttColumnTagHelper

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-gantt name="gantt">
    <columns>
        <gantt-column field="title">
            <columns></columns>
        </gantt-column>
    </columns>
</kendo-gantt>

Constructors

Initializes a new instance of the GanttColumnTagHelper class.

C#
public GanttColumnTagHelper()

Properties

If set to true a draghandle will be rendered and the user could reorder the rows by dragging the row via the drag handle.

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

Specifies whether this column can be edited by the user.

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

Provides a way to specify a custom editing UI for the column. To create the editing UI, use the container parameter.

C#
public string Editor { get; set; }

If set to true, the column will show the icons that are used for expanding and collapsing child rows. By default, the "title" column of the Gantt is expandable.

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

The field to which the column is bound. The value of this field is displayed by the column during data binding. The field name should be a valid Javascript identifier and should contain only alphanumeric characters (or "$" or "_"), and may not start with a digit.

C#
public string Field { get; set; }

The format that is applied to the value before it is displayed. Takes the form "{0:format}" where "format" is a standard number format,custom number format, standard date format or a custom date format.

C#
public string Format { get; set; }

The HTML attributes of the table header cell (<th>) that is rendered for the column.

C#
public IDictionary<string, object> HeaderAttributes { 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 Gantt will not display the column. By default, all columns are displayed.

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

The HTML attributes of the table cell (<td>) that is rendered for the column.

C#
public IDictionary<string, object> HtmlAttributes { get; set; }

If set to true, the Gantt will display the column in the column menu. By default, the column menu includes all data-bound columns, that is, the ones with a set field option.

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

The pixel screen width below which the column will be hidden. The setting takes precedence over the hidden setting and the two cannot not be used at the same time.

C#
public double? MinScreenWidth { get; set; }

The template which renders the column content. The Gantt renders table rows (<tr>) which represent the data source items. Each table row consists of table cells (<td>) which represent the GanttList columns. By default, the HTML-encoded value of the field is displayed in the column.

C#
public string Template { get; set; }

The template which renders the column content. The Gantt renders table rows (<tr>) which represent the data source items. Each table row consists of table cells (<td>) which represent the GanttList columns. By default, the HTML-encoded value of the field is displayed in the column. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string TemplateHandler { get; set; }

The template which renders the column content. The Gantt renders table rows (<tr>) which represent the data source items. Each table row consists of table cells (<td>) which represent the GanttList columns. By default, the HTML-encoded value of the field is displayed in the 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 column.

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

Implements: ITemplateComponent.Templates

The template which renders the column content. The Gantt renders table rows (<tr>) which represent the data source items. Each table row consists of table cells (<td>) which represent the GanttList columns. By default, the HTML-encoded value of the field is displayed in the 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 width of the column. Numeric values are treated as pixels.

C#
public string 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>