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

Defines the fluent API for configuring the GanttTooltipSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class GanttTooltipSettingsBuilder

Inheritance: objectGanttTooltipSettingsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public GanttTooltipSettingsBuilder(GanttTooltipSettings settings)
Parameters:settingsGanttTooltipSettings

Methods

The template which renders the tooltip.The fields which can be used in the template are: task - the gantt task, for which the template is shown.

C#
public GanttTooltipSettingsBuilder Template(string value)
Parameters:valuestring

The value that configures the template.

Returns:

GanttTooltipSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Tooltip(t=>t.Template("template"))
)

The template which renders the tooltip.The fields which can be used in the template are: task - the gantt task, for which the template is shown.

C#
public GanttTooltipSettingsBuilder Template<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

GanttTooltipSettingsBuilder

The template which renders the tooltip.The fields which can be used in the template are: task - the gantt task, for which the template is shown.

C#
public GanttTooltipSettingsBuilder TemplateHandler(string value)
Parameters:valuestring

The value that configures the template.

Returns:

GanttTooltipSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt&lt;TaskViewModel, DependencyViewModel&gt;()
.Name("gantt")
.Tooltip(t=&gt;t.TemplateHandler("templateHandler"))
)

The template which renders the tooltip.The fields which can be used in the template are: task - the gantt task, for which the template is shown.

C#
public GanttTooltipSettingsBuilder TemplateId(string value)
Parameters:valuestring

The value that configures the template.

Returns:

GanttTooltipSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt&lt;TaskViewModel, DependencyViewModel&gt;()
.Name("gantt")
.Tooltip(t=&gt;t.TemplateId("templateID"))
)

The template which renders the tooltip.The fields which can be used in the template are: task - the gantt task, for which the template is shown.

C#
public GanttTooltipSettingsBuilder TemplateView(MvcHtmlString value)
Parameters:valueMvcHtmlString

The value that configures the template.

Returns:

GanttTooltipSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt&lt;TaskViewModel, DependencyViewModel&gt;()
.Name("gantt")
.Tooltip(t =&gt; t.TemplateView(Html.Partial("TemplateView")))
)

If set to false the gantt will not display the task tooltip. By default the task tooltip is displayed.

C#
public GanttTooltipSettingsBuilder Visible(bool value)
Parameters:valuebool

The value that configures the visible.

Returns:

GanttTooltipSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt&lt;TaskViewModel, DependencyViewModel&gt;()
.Name("gantt")
.Tooltip(t=&gt;t.Visible(true))
)