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

Defines the fluent API for configuring the GanttViewRangeSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class GanttViewRangeSettingsBuilder

Inheritance: objectGanttViewRangeSettingsBuilder

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

Constructors

C#
public GanttViewRangeSettingsBuilder(GanttViewRangeSettings settings)
Parameters:settingsGanttViewRangeSettings

Methods

If set to some date the timeline of the view will end to this date.Overrides the range.end option of the gantt.

C#
public GanttViewRangeSettingsBuilder End(DateTime value)
Parameters:valueDateTime

The value that configures the end.

Returns:

GanttViewRangeSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.Range(r => r.End(DateTime.Now))))
)

If set to some date the timeline of the view will start from this date.Overrides the range.start option of the gantt.

C#
public GanttViewRangeSettingsBuilder Start(DateTime value)
Parameters:valueDateTime

The value that configures the start.

Returns:

GanttViewRangeSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.Range(r => r.Start(DateTime.Now))))
)