GanttViewBuilder
Methods
Date(System.DateTime)
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.
Parameters
value - System.DateTime
The value that configures the date.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.Date(DateTime.Now)))
)
Range(System.Action)
Configures the view range settings.
Parameters
configurator - System.Action<GanttViewRangeSettingsBuilder>
The action that configures the range.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.Range(r => r.Start(DateTime.Now))))
)
Selected(System.Boolean)
If set to true the view will be initially selected by the Gantt component. The default selected view is "day".
Parameters
value - System.Boolean
The value that configures the selected.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.Selected(true)))
)
SlotSize(System.Double)
The size of the time slot headers. Values are treated as pixels.
Parameters
value - System.Double
The value that configures the slotsize.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.SlotSize(12)))
)
TimeHeaderTemplate(System.String)
The template used to render the time slots in "day" view
Parameters
value - System.String
The value that configures the timeheadertemplate.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.TimeHeaderTemplate("Value")))
)
TimeHeaderTemplateId(System.String)
The template used to render the time slots in "day" view
Parameters
value - System.String
The value that configures the timeheadertemplate.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.TimeHeaderTemplateId("Value")))
)
TimeHeaderTemplateView(System.Web.Mvc.MvcHtmlString)
The template used to render the time slots in "day" view
Parameters
value - System.Web.Mvc.MvcHtmlString
The value that configures the timeheadertemplate.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.TimeHeaderTemplateView(Html.Partial("Value"))))
)
TimeHeaderTemplateHandler(System.String)
The template used to render the time slots in "day" view
Parameters
value - System.String
The value that configures the timeheadertemplate.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.TimeHeaderTemplateHandler("Value")))
)
TimeHeaderTemplate(Kendo.Mvc.UI.TemplateBuilder)
The template used to render the time slots in "day" view
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the timeheadertemplate.
DayHeaderTemplate(System.String)
The template used to render the day slots in "day" and "week" views.
Parameters
value - System.String
The value that configures the dayheadertemplate.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.DayHeaderTemplate("Value")))
)
DayHeaderTemplateId(System.String)
The template used to render the day slots in "day" and "week" views.
Parameters
value - System.String
The value that configures the dayheadertemplate.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.DayHeaderTemplateId("Value")))
)
DayHeaderTemplateView(System.Web.Mvc.MvcHtmlString)
The template used to render the day slots in "day" and "week" views.
Parameters
value - System.Web.Mvc.MvcHtmlString
The value that configures the dayheadertemplate.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.DayHeaderTemplateView(Html.Partial("Value"))))
)
DayHeaderTemplateHandler(System.String)
The template used to render the day slots in "day" and "week" views.
Parameters
value - System.String
The value that configures the dayheadertemplate.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.DayHeaderTemplateHandler("Value")))
)
DayHeaderTemplate(Kendo.Mvc.UI.TemplateBuilder)
The template used to render the day slots in "day" and "week" views.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the dayheadertemplate.
WeekHeaderTemplate(System.String)
The template used to render the week slots in "week" and "month" views.
Parameters
value - System.String
The value that configures the weekheadertemplate.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.WeekHeaderTemplate("Value")))
)
WeekHeaderTemplateId(System.String)
The template used to render the week slots in "week" and "month" views.
Parameters
value - System.String
The value that configures the weekheadertemplate.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.WeekHeaderTemplateId("Value")))
)
WeekHeaderTemplateView(System.Web.Mvc.MvcHtmlString)
The template used to render the week slots in "week" and "month" views.
Parameters
value - System.Web.Mvc.MvcHtmlString
The value that configures the weekheadertemplate.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.TimeHeaderTemplateId(Html.Partial("Value"))))
)
WeekHeaderTemplateHandler(System.String)
The template used to render the week slots in "week" and "month" views.
Parameters
value - System.String
The value that configures the weekheadertemplate.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.WeekHeaderTemplateHandler("Value")))
)
WeekHeaderTemplate(Kendo.Mvc.UI.TemplateBuilder)
The template used to render the week slots in "week" and "month" views.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the weekheadertemplate.
MonthHeaderTemplate(System.String)
The template used to render the month slots in "month" and "year" views.
Parameters
value - System.String
The value that configures the monthheadertemplate.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.MonthHeaderTemplate("Value")))
)
MonthHeaderTemplateId(System.String)
The template used to render the month slots in "month" and "year" views.
Parameters
value - System.String
The value that configures the monthheadertemplate.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.MonthHeaderTemplateId("Value")))
)
MonthHeaderTemplateView(System.Web.Mvc.MvcHtmlString)
The template used to render the month slots in "month" and "year" views.
Parameters
value - System.Web.Mvc.MvcHtmlString
The value that configures the monthheadertemplate.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.MonthHeaderTemplateView(Html.Partial("Value"))))
)
MonthHeaderTemplateHandler(System.String)
The template used to render the month slots in "month" and "year" views.
Parameters
value - System.String
The value that configures the monthheadertemplate.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.MonthHeaderTemplateHandler("Value")))
)
MonthHeaderTemplate(Kendo.Mvc.UI.TemplateBuilder)
The template used to render the month slots in "month" and "year" views.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the monthheadertemplate.
YearHeaderTemplate(System.String)
The template used to render the year slots in "year" view.
Parameters
value - System.String
The value that configures the yearheadertemplate.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.YearHeaderTemplate("Value")))
)
YearHeaderTemplateId(System.String)
The template used to render the year slots in "year" view.
Parameters
value - System.String
The value that configures the yearheadertemplate.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.YearHeaderTemplateId("Value")))
)
YearHeaderTemplateView(System.Web.Mvc.MvcHtmlString)
The template used to render the year slots in "year" view.
Parameters
value - System.Web.Mvc.MvcHtmlString
The value that configures the yearheadertemplate.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.YearHeaderTemplateView(Html.Partial("Value"))))
)
YearHeaderTemplateHandler(System.String)
The template used to render the year slots in "year" view.
Parameters
value - System.String
The value that configures the yearheadertemplate.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.YearHeaderTemplateHandler("Value")))
)
YearHeaderTemplate(Kendo.Mvc.UI.TemplateBuilder)
The template used to render the year slots in "year" view.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the yearheadertemplate.
ResizeTooltipFormat(System.String)
The format used to display the start and end dates in the resize tooltip.
Parameters
value - System.String
The value that configures the resizetooltipformat.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.ResizeTooltipFormat("Value")))
)
Type(Kendo.Mvc.UI.GanttViewType)
The view type. Supported types are "day", "week", "month" and "year".
Parameters
value - GanttViewType
The value that configures the type.
Example
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Views(v => v.DayView(dv => dv.Type(GanttViewType.Day)))
)