GanttColumnTagHelper
Kendo UI GanttColumn TagHelper GanttColumnTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[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:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-gantt name="gantt">
<columns>
<gantt-column field="title">
<columns></columns>
</gantt-column>
</columns>
</kendo-gantt>
Child Tags
Constructors
Initializes a new instance of the GanttColumnTagHelper class.
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.
public bool? Draggable { get; set; }
Specifies whether this column can be edited by the user.
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.
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.
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.
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.
public string Format { get; set; }
The HTML attributes of the table header cell (<th>) that is rendered for the column.
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.
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.
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.
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.
public IHtmlContent HeaderTemplateView { get; set; }
If set to true, the Gantt will not display the column. By default, all columns are displayed.
public bool? Hidden { get; set; }
The HTML attributes of the table cell (<td>) that is rendered for the column.
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.
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.
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.
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.
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.
public string TemplateId { get; set; }
Configures the templates for the column.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
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.
public IHtmlContent TemplateView { get; set; }
The text that is displayed in the column header cell. If not set the field is used.
public string Title { 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.