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

Kendo UI GanttView TagHelper GanttViewTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("gantt-view", ParentTag = "views", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("range", new string[] { })]
[SuppressTagRendering]
public class GanttViewTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseGanttViewTagHelper

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-gantt name="gantt">
    <views>
        <gantt-view type="GanttViewType.Day" date="new DateTime(2024, 6, 1)" />
    </views>
</kendo-gantt>

Child Tagsrange

Constructors

Initializes a new instance of the GanttViewTagHelper class.

C#
public GanttViewTagHelper()

Properties

If set to some date and it is between the range start and range end of the selected view, the timeline of the currently selected view is scrolled to start from this date.Overrides the date option of the gantt.

C#
public DateTime? Date { get; set; }

The template used to render the day slots in "day" and "week" views.

C#
public string DayHeaderTemplate { get; set; }

The template used to render the day slots in "day" and "week" views. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string DayHeaderTemplateHandler { get; set; }

The template used to render the day slots in "day" and "week" views. This option expects the ID of the script element that contains the template.

C#
public string DayHeaderTemplateId { get; set; }

The template used to render the day slots in "day" and "week" views. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent DayHeaderTemplateView { get; set; }

The template used to render the month slots in "month" and "year" views.

C#
public string MonthHeaderTemplate { get; set; }

The template used to render the month slots in "month" and "year" views. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string MonthHeaderTemplateHandler { get; set; }

The template used to render the month slots in "month" and "year" views. This option expects the ID of the script element that contains the template.

C#
public string MonthHeaderTemplateId { get; set; }

The template used to render the month slots in "month" and "year" views. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent MonthHeaderTemplateView { get; set; }

The format used to display the start and end dates in the resize tooltip.

C#
public string ResizeTooltipFormat { get; set; }

If set to true the view will be initially selected by the Gantt widget. The default selected view is "day".

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

The size of the time slot headers. Values are treated as pixels.

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

The template used to render the time slots in "day" view

C#
public string TimeHeaderTemplate { get; set; }

The template used to render the time slots in "day" view This option expects the name of a JavaScript function that will be called to return the template.

C#
public string TimeHeaderTemplateHandler { get; set; }

The template used to render the time slots in "day" view This option expects the ID of the script element that contains the template.

C#
public string TimeHeaderTemplateId { get; set; }

The template used to render the time slots in "day" view This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent TimeHeaderTemplateView { get; set; }

The view type. Supported types are "day", "week", "month" and "year".

C#
public GanttViewType? Type { get; set; }

The template used to render the week slots in "week" and "month" views.

C#
public string WeekHeaderTemplate { get; set; }

The template used to render the week slots in "week" and "month" views. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string WeekHeaderTemplateHandler { get; set; }

The template used to render the week slots in "week" and "month" views. This option expects the ID of the script element that contains the template.

C#
public string WeekHeaderTemplateId { get; set; }

The template used to render the week slots in "week" and "month" views. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent WeekHeaderTemplateView { get; set; }

The template used to render the year slots in "year" view.

C#
public string YearHeaderTemplate { get; set; }

The template used to render the year slots in "year" view. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string YearHeaderTemplateHandler { get; set; }

The template used to render the year slots in "year" view. This option expects the ID of the script element that contains the template.

C#
public string YearHeaderTemplateId { get; set; }

The template used to render the year slots in "year" view. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent YearHeaderTemplateView { 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>