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

Defines the fluent interface for configuring the SchedulerMultiDayView.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TView

Syntax:

C#
public class SchedulerMultiDayViewBuilder<TView> : SchedulerBaseViewBuilder<TView, SchedulerMultiDayViewBuilder<TView>> where TView : SchedulerMultiDayView

Inheritance: objectSchedulerBaseViewBuilder<TView, SchedulerMultiDayViewBuilder<TView>>SchedulerMultiDayViewBuilder<TView>

Derived Classes: SchedulerDayViewBuilder<T>SchedulerWeekViewBuilder<T>SchedulerWorkWeekViewBuilder<T>

Inherited Members SchedulerBaseViewBuilder<TView, SchedulerMultiDayViewBuilder<TView>>.viewSchedulerBaseViewBuilder<TView, SchedulerMultiDayViewBuilder<TView>>.Title(string)SchedulerBaseViewBuilder<TView, SchedulerMultiDayViewBuilder<TView>>.Editable(Action<SchedulerViewEditableSettingsBuilder>)SchedulerBaseViewBuilder<TView, SchedulerMultiDayViewBuilder<TView>>.Editable(bool)SchedulerBaseViewBuilder<TView, SchedulerMultiDayViewBuilder<TView>>.EventTemplate(string)SchedulerBaseViewBuilder<TView, SchedulerMultiDayViewBuilder<TView>>.EventTemplateId(string)SchedulerBaseViewBuilder<TView, SchedulerMultiDayViewBuilder<TView>>.EventTemplateView(IHtmlContent)SchedulerBaseViewBuilder<TView, SchedulerMultiDayViewBuilder<TView>>.EventTemplateHandler(string)SchedulerBaseViewBuilder<TView, SchedulerMultiDayViewBuilder<TView>>.EventTemplate<TModel>(TemplateBuilder<TModel>)SchedulerBaseViewBuilder<TView, SchedulerMultiDayViewBuilder<TView>>.SelectedDateFormat(string)SchedulerBaseViewBuilder<TView, SchedulerMultiDayViewBuilder<TView>>.SelectedShortDateFormat(string)SchedulerBaseViewBuilder<TView, SchedulerMultiDayViewBuilder<TView>>.Selected(bool)SchedulerBaseViewBuilder<TView, SchedulerMultiDayViewBuilder<TView>>.Groups(SchedulerGroupOrientation)SchedulerBaseViewBuilder<TView, SchedulerMultiDayViewBuilder<TView>>.Groups(bool)SchedulerBaseViewBuilder<TView, SchedulerMultiDayViewBuilder<TView>>.Groups(Action<SchedulerGroupBuilder>)object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

SchedulerMultiDayViewBuilder method.

C#
public SchedulerMultiDayViewBuilder(TView resource)
Parameters:resourceTView

Methods

Defines the template used to render the "all day" Scheduler events. The option is supported for Day and Week views. The available fields in the template are:

  • description: The event description.
  • end: The event end date.
  • resources: The event resources collection.
  • start: The event start date.
  • title: The event title.
C#
public SchedulerMultiDayViewBuilder<TView> AllDayEventTemplate(string allDayEventTemplate)
Parameters:allDayEventTemplatestring

The value that configures the template content.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.AllDayEventTemplate("&lt;h3&gt;#: title #&lt;/h3&gt;"));
})
)

Defines the template used to render the "all day" Scheduler events. The option is supported for Day and Week views. The available fields in the template are:

  • description: The event description.
  • end: The event end date.
  • resources: The event resources collection.
  • start: The event start date.
  • title: The event title.
C#
public SchedulerMultiDayViewBuilder<TView> AllDayEventTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.AllDayEventTemplate(Html.Kendo().Template().AddHtml("&lt;h3&gt;${data.title}&lt;/h3&gt;")));
})
)

Defines the template used to render the "all day" Scheduler events. The option is supported for Day and Week views. The available fields in the template are:

  • description: The event description.
  • end: The event end date.
  • resources: The event resources collection.
  • start: The event start date.
  • title: The event title.
C#
public SchedulerMultiDayViewBuilder<TView> AllDayEventTemplateHandler(string allDayEventTemplateHandler)
Parameters:allDayEventTemplateHandlerstring

The JavaScript function that returns the template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.AllDayEventTemplateHandler("getAllDayEventTemplate"));
})
)
&lt;script&gt;
function getAllDayEventTemplate(data) {
return `&lt;h3&gt;${data.title}&lt;/h3&gt;`;
}
&lt;/script&gt;

Defines the template used to render the "all day" Scheduler events. The option is supported for Day and Week views. The available fields in the template are:

  • description: The event description.
  • end: The event end date.
  • resources: The event resources collection.
  • start: The event start date.
  • title: The event title.
C#
public SchedulerMultiDayViewBuilder<TView> AllDayEventTemplateId(string allDayEventTemplateId)
Parameters:allDayEventTemplateIdstring

The "id" attribute of the external Kendo UI Template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.AllDayEventTemplateId("allDayTemplate"));
})
)
&lt;script id="allDayTemplate" type="text/x-kendo-template"&gt;
&lt;h3&gt;#: title #&lt;/h3&gt;
&lt;/script&gt;

Defines the template used to render the "all day" Scheduler events. The option is supported for Day and Week views. The available fields in the template are:

  • description: The event description.
  • end: The event end date.
  • resources: The event resources collection.
  • start: The event start date.
  • title: The event title.
C#
public SchedulerMultiDayViewBuilder<TView> AllDayEventTemplateView(IHtmlContent allDayEventTemplateView)
Parameters:allDayEventTemplateViewIHtmlContent

The Razor View that contains the template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.AllDayEventTemplateView(Html.Partial("AllDayEventTemplateView")));
})
)

If enabled, the Scheduler will display a slot for the "all day" events. By default, the slot is visible. The option is supported for Day and Week views.

C#
public SchedulerMultiDayViewBuilder<TView> AllDaySlot(bool allDaySlot)
Parameters:allDaySlotbool

The enum value that enables or disables the slot.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.AllDaySlot(false));
})
)

Defines the template used to render the "all day" slot cell. The option is supported for Day, Week, and WorkWeek views. The available fields in the template are:

  • date: Represents the slot date.
  • resources(): Returns the relevant resources for the current slot.
C#
public SchedulerMultiDayViewBuilder<TView> AllDaySlotTemplate(string slotTemplate)
Parameters:slotTemplatestring

The value that configures the template content.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.AllDaySlotTemplate("&lt;strong&gt;#=kendo.toString(date)#&lt;/strong&gt;"));
})
)

Defines the template used to render the "all day" slot cell. The option is supported for Day, Week, and WorkWeek views. The available fields in the template are:

  • date: Represents the slot date.
  • resources(): Returns the relevant resources for the current slot.
C#
public SchedulerMultiDayViewBuilder<TView> AllDaySlotTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.AllDaySlotTemplate(Html.Kendo().Template().AddHtml("&lt;strong&gt;${kendo.toString(data.date)}&lt;/strong&gt;")));
})
)

Defines the template used to render the "all day" slot cell. The option is supported for Day, Week, and WorkWeek views. The available fields in the template are:

  • date: Represents the slot date.
  • resources(): Returns the relevant resources for the current slot.
C#
public SchedulerMultiDayViewBuilder<TView> AllDaySlotTemplateHandler(string slotTemplateHandler)
Parameters:slotTemplateHandlerstring

The JavaScript function that returns the template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.AllDaySlotTemplateHandler("getAllDaySlotTemplate"));
})
)
&lt;script&gt;
function getAllDaySlotTemplate(data) {
return `&lt;strong&gt;${kendo.toString(data.date)}&lt;/strong&gt;`;
}
&lt;/script&gt;

Defines the template used to render the "all day" slot cell. The option is supported for Day, Week, and WorkWeek views. The available fields in the template are:

  • date: Represents the slot date.
  • resources(): Returns the relevant resources for the current slot.
C#
public SchedulerMultiDayViewBuilder<TView> AllDaySlotTemplateId(string slotTemplateId)
Parameters:slotTemplateIdstring

The "id" attribute of the external Kendo UI Template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.AllDaySlotTemplateId("allDaySlotTemplate"));
})
)
&lt;script id="allDaySlotTemplate" type="text/x-kendo-template"&gt;
&lt;strong&gt;#=kendo.toString(date)#&lt;/strong&gt;
&lt;/script&gt;

Defines the template used to render the "all day" slot cell. The option is supported for Day, Week, and WorkWeek views. The available fields in the template are:

  • date: Represents the slot date.
  • resources(): Returns the relevant resources for the current slot.
C#
public SchedulerMultiDayViewBuilder<TView> AllDaySlotTemplateView(IHtmlContent slotTemplateView)
Parameters:slotTemplateViewIHtmlContent

The Razor View that contains the template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.AllDaySlotTemplateView(Html.Partial("AllDaySlotTemplateView")));
})
)

Defines the template used to render the date header cells. The option is supported for Day, Week, WorkWeek, and Timeline views. By default the Scheduler renders the date using a custom date format - "ddd M/dd". The "ddd" specifier (the abbreviated name of the week day), will be localized based on the current Kendo UI culture. To control the day and month order, use a custom template. The available field in the template is "date", which represents the major tick date.

C#
public SchedulerMultiDayViewBuilder<TView> DateHeaderTemplate(string dateHeaderTemplate)
Parameters:dateHeaderTemplatestring

The value that configures the template content.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.DateHeaderTemplate("&lt;strong&gt;#=kendo.toString(date, 'd')#&lt;/strong&gt;"));
})
)

Defines the template used to render the date header cells. The option is supported for Day, Week, WorkWeek, and Timeline views. By default the Scheduler renders the date using a custom date format - "ddd M/dd". The "ddd" specifier (the abbreviated name of the week day), will be localized based on the current Kendo UI culture. To control the day and month order, use a custom template. The available field in the template is "date", which represents the major tick date.

C#
public SchedulerMultiDayViewBuilder<TView> DateHeaderTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.DateHeaderTemplate(Html.Kendo().Template().AddHtml("&lt;strong&gt;${kendo.toString(data.date, 'd')}&lt;/strong&gt;")));
})
)

Defines the template used to render the date header cells. The option is supported for Day, Week, WorkWeek, and Timeline views. By default the Scheduler renders the date using a custom date format - "ddd M/dd". The "ddd" specifier (the abbreviated name of the week day), will be localized based on the current Kendo UI culture. To control the day and month order, use a custom template. The available field in the template is "date", which represents the major tick date.

C#
public SchedulerMultiDayViewBuilder<TView> DateHeaderTemplateHandler(string dateHeaderTemplateHandler)
Parameters:dateHeaderTemplateHandlerstring

The JavaScript function that returns the template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.DateHeaderTemplateHandler("getDateHeaderTemplate"));
})
)
&lt;script&gt;
function getDateHeaderTemplate(data) {
return `&lt;strong&gt;${kendo.toString(data.date, 'd')}&lt;/strong&gt;`;
}
&lt;/script&gt;

Defines the template used to render the date header cells. The option is supported for Day, Week, WorkWeek, and Timeline views. By default the Scheduler renders the date using a custom date format - "ddd M/dd". The "ddd" specifier (the abbreviated name of the week day), will be localized based on the current Kendo UI culture. To control the day and month order, use a custom template. The available field in the template is "date", which represents the major tick date.

C#
public SchedulerMultiDayViewBuilder<TView> DateHeaderTemplateId(string dateHeaderTemplateId)
Parameters:dateHeaderTemplateIdstring

The "id" attribute of the external Kendo UI Template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.DateHeaderTemplateId("dateHeaderTemplate"));
})
)
&lt;script id="dateHeaderTemplate" type="text/x-kendo-template"&gt;
&lt;strong&gt;#=kendo.toString(date, 'd')#&lt;/strong&gt;
&lt;/script&gt;

Defines the template used to render the date header cells. The option is supported for Day, Week, WorkWeek, and Timeline views. By default the Scheduler renders the date using a custom date format - "ddd M/dd". The "ddd" specifier (the abbreviated name of the week day), will be localized based on the current Kendo UI culture. To control the day and month order, use a custom template. The available field in the template is "date", which represents the major tick date.

C#
public SchedulerMultiDayViewBuilder<TView> DateHeaderTemplateView(IHtmlContent dateHeaderTemplateView)
Parameters:dateHeaderTemplateViewIHtmlContent

The Razor View that contains the template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.DateHeaderTemplateView(Html.Partial("DateHeaderTemplateView")));
})
)

Sets the end time of the view. The Scheduler will display events ending before the end time.

C#
public SchedulerMultiDayViewBuilder<TView> EndTime(DateTime endTime)
Parameters:endTimeDateTime

The value that configures the end time.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;TaskViewModel&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; {
dayView.StartTime(new DateTime(2013, 6, 13, 10, 00, 00));
dayView.EndTime(new DateTime(2013, 6, 13, 23, 00, 00));
});
})
)

Sets the end time of the view. The Scheduler will display events ending before the end time.

C#
public SchedulerMultiDayViewBuilder<TView> EndTime(int hours, int minutes, int seconds)
Parameters:hoursint

The hours

minutesint

The minutes

secondsint

The seconds

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;TaskViewModel&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; {
dayView.StartTime(new DateTime(2013, 6, 13, 10, 00, 00));
dayView.EndTime(23,0,0);
});
})
)

If set to "false", the footer of the Scheduler will not be displayed. By default, the footer is visible.

C#
public SchedulerMultiDayViewBuilder<TView> Footer(bool showFooter)
Parameters:showFooterbool

The enum value that toggles the visibility of the footer.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(w =&gt; w.Footer(false));
})
)

Defines the template used to render the group headers of the Scheduler Day, Week, WorkWeek, and Timeline views. The available fields in the template are:

  • text: The group text.
  • color: The group color.
  • value: The group value.
  • field: The field of the Scheduler event that contains the resource id.
  • title: The 'title' option of the resource.
  • name: The 'name' option of the resource.
C#
public SchedulerMultiDayViewBuilder<TView> GroupHeaderTemplate(string groupHeaderTemplate)
Parameters:groupHeaderTemplatestring

The value that configures the template content.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.GroupHeaderTemplate("&lt;strong style='color: #=color#'&gt;#: text #&lt;/strong&gt;"));
})
)

Defines the template used to render the group headers of the Scheduler Day, Week, WorkWeek, and Timeline views. The available fields in the template are:

  • text: The group text.
  • color: The group color.
  • value: The group value.
  • field: The field of the Scheduler event that contains the resource id.
  • title: The 'title' option of the resource.
  • name: The 'name' option of the resource.
C#
public SchedulerMultiDayViewBuilder<TView> GroupHeaderTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.GroupHeaderTemplate(Html.Kendo().Template().AddHtml("&lt;strong style='color: ${data.color}'&gt;${data.text}&lt;/strong&gt;")));
})
)

Defines the template used to render the group headers of the Scheduler Day, Week, WorkWeek, and Timeline views. The available fields in the template are:

  • text: The group text.
  • color: The group color.
  • value: The group value.
  • field: The field of the Scheduler event that contains the resource id.
  • title: The 'title' option of the resource.
  • name: The 'name' option of the resource.
C#
public SchedulerMultiDayViewBuilder<TView> GroupHeaderTemplateHandler(string groupHeaderTemplateHandler)
Parameters:groupHeaderTemplateHandlerstring

The JavaScript function that returns the template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.GroupHeaderTemplateHandler("getGroupHeaderTemplate"));
})
)
&lt;script&gt;
function getGroupHeaderTemplate(data) {
return `&lt;strong style='color: ${data.color}'&gt;${data.text}&lt;/strong&gt;`;
}
&lt;/script&gt;

Defines the template used to render the group headers of the Scheduler Day, Week, WorkWeek, and Timeline views. The available fields in the template are:

  • text: The group text.
  • color: The group color.
  • value: The group value.
  • field: The field of the Scheduler event that contains the resource id.
  • title: The 'title' option of the resource.
  • name: The 'name' option of the resource.
C#
public SchedulerMultiDayViewBuilder<TView> GroupHeaderTemplateId(string groupHeaderTemplateId)
Parameters:groupHeaderTemplateIdstring

The "id" attribute of the external Kendo UI Template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.GroupHeaderTemplateId("groupHeaderTemplate"));
})
)
&lt;script id="groupHeaderTemplate" type="text/x-kendo-template"&gt;
&lt;strong style='color: #=color#'&gt;#: text #&lt;/strong&gt;
&lt;/script&gt;

Defines the template used to render the group headers of the Scheduler Day, Week, WorkWeek, and Timeline views. The available fields in the template are:

  • text: The group text.
  • color: The group color.
  • value: The group value.
  • field: The field of the Scheduler event that contains the resource id.
  • title: The 'title' option of the resource.
  • name: The 'name' option of the resource.
C#
public SchedulerMultiDayViewBuilder<TView> GroupHeaderTemplateView(IHtmlContent groupHeaderTemplateView)
Parameters:groupHeaderTemplateViewIHtmlContent

The Razor View that contains the template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.GroupHeaderTemplateView(Html.Partial("GroupHeaderTemplateView")));
})
)

Defines the number of minutes represented by a major tick. The option is supported for Day and Week views.

C#
public SchedulerMultiDayViewBuilder<TView> MajorTick(int majorTick)
Parameters:majorTickint

The value that configures the number of minutes.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.MajorTick(120));
})
)

Defines the template used to render the major ticks. The option is supported for Day, Week, WorkWeek, and Timeline views. By default, the Scheduler renders the time using the current culture time format. The available field in the template is "date", which represents the major tick date.

C#
public SchedulerMultiDayViewBuilder<TView> MajorTimeHeaderTemplate(string majorTimeHeaderTemplate)
Parameters:majorTimeHeaderTemplatestring

The value that configures the template content.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.MajorTimeHeaderTemplate("&lt;strong&gt;#=kendo.toString(date, 'h')#&lt;/strong&gt;&lt;sup&gt;00&lt;/sup&gt;"));
})
)

Defines the template used to render the major ticks. The option is supported for Day, Week, WorkWeek, and Timeline views. By default, the Scheduler renders the time using the current culture time format. The available field in the template is "date", which represents the major tick date.

C#
public SchedulerMultiDayViewBuilder<TView> MajorTimeHeaderTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.MajorTimeHeaderTemplate(Html.Kendo().Template().AddHtml("&lt;strong&gt;${kendo.toString(data.date, 'h')}&lt;/strong&gt;&lt;sup&gt;00&lt;/sup&gt;")));
})
)

Defines the template used to render the major ticks. The option is supported for Day, Week, WorkWeek, and Timeline views. By default, the Scheduler renders the time using the current culture time format. The available field in the template is "date", which represents the major tick date.

C#
public SchedulerMultiDayViewBuilder<TView> MajorTimeHeaderTemplateHandler(string majorTimeHeaderTemplateHandler)
Parameters:majorTimeHeaderTemplateHandlerstring

The JavaScript function that returns the template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.MajorTimeHeaderTemplateHandler("getMajorTimeHeaderTemplate"));
})
)
&lt;script&gt;
function getMajorTimeHeaderTemplate(data) {
return `&lt;strong&gt;${kendo.toString(data.date, 'h')}&lt;/strong&gt;&lt;sup&gt;00&lt;/sup&gt;`;
}
&lt;/script&gt;

Defines the template used to render the major ticks. The option is supported for Day, Week, WorkWeek, and Timeline views. By default, the Scheduler renders the time using the current culture time format. The available field in the template is "date", which represents the major tick date.

C#
public SchedulerMultiDayViewBuilder<TView> MajorTimeHeaderTemplateId(string majorTimeHeaderTemplateId)
Parameters:majorTimeHeaderTemplateIdstring

The "id" attribute of the external Kendo UI Template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.MajorTimeHeaderTemplateId("majorHeaderTemplate"));
})
)
&lt;script id="majorHeaderTemplate" type="text/x-kendo-template"&gt;
&lt;strong&gt;#=kendo.toString(date, 'h')#&lt;/strong&gt;&lt;sup&gt;00&lt;/sup&gt;
&lt;/script&gt;

Defines the template used to render the major ticks. The option is supported for Day, Week, WorkWeek, and Timeline views. By default, the Scheduler renders the time using the current culture time format. The available field in the template is "date", which represents the major tick date.

C#
public SchedulerMultiDayViewBuilder<TView> MajorTimeHeaderTemplateView(IHtmlContent majorTimeHeaderTemplateView)
Parameters:majorTimeHeaderTemplateViewIHtmlContent

The Razor View that contains the template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.MajorTimeHeaderTemplateView(Html.Partial("MajorHeaderTemplateView")));
})
)

Defines the number of time slots displayed per major tick. The option is supported for Day, Week, and Timeline views.

C#
public SchedulerMultiDayViewBuilder<TView> MinorTickCount(int minorTickCount)
Parameters:minorTickCountint

The value that configures the number of time slots.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.MinorTickCount(1));
})
)

Defines the template used to render the minor ticks. The option is supported for Day and Week views. The available field in the template is "date", which represents the major tick date.

C#
public SchedulerMultiDayViewBuilder<TView> MinorTimeHeaderTemplate(string minorTimeHeaderTemplate)
Parameters:minorTimeHeaderTemplatestring

The value that configures the template content.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.MinorTimeHeaderTemplate("&lt;strong&gt;#=kendo.toString(date, 't')#&lt;/strong&gt;"));
})
)

Defines the template used to render the minor ticks. The option is supported for Day and Week views. The available field in the template is "date", which represents the major tick date.

C#
public SchedulerMultiDayViewBuilder<TView> MinorTimeHeaderTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.MinorTimeHeaderTemplate(Html.Kendo().Template().AddHtml("&lt;strong&gt;${kendo.toString(data.date, 't')}&lt;/strong&gt;")));
})
)

Defines the template used to render the minor ticks. The option is supported for Day and Week views. The available field in the template is "date", which represents the major tick date.

C#
public SchedulerMultiDayViewBuilder<TView> MinorTimeHeaderTemplateHandler(string minorTimeHeaderTemplateHandler)
Parameters:minorTimeHeaderTemplateHandlerstring

The JavaScript function that returns the template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.MinorTimeHeaderTemplateHandler("getMinorTimeHeaderTemplate"));
})
)
&lt;script&gt;
function getMinorTimeHeaderTemplate(data) {
return `&lt;strong&gt;${kendo.toString(data.date, 't')}&lt;/strong&gt;`;
}
&lt;/script&gt;

Defines the template used to render the minor ticks. The option is supported for Day and Week views. The available field in the template is "date", which represents the major tick date.

C#
public SchedulerMultiDayViewBuilder<TView> MinorTimeHeaderTemplateId(string minorTimeHeaderTemplateId)
Parameters:minorTimeHeaderTemplateIdstring

The "id" attribute of the external Kendo UI Template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.MinorTimeHeaderTemplateId("minorHeaderTemplate"));
})
)
&lt;script id="minorHeaderTemplate" type="text/x-kendo-template"&gt;
&lt;strong&gt;#=kendo.toString(date, 't')#&lt;/strong&gt;
&lt;/script&gt;

Defines the template used to render the minor ticks. The option is supported for Day and Week views. The available field in the template is "date", which represents the major tick date.

C#
public SchedulerMultiDayViewBuilder<TView> MinorTimeHeaderTemplateView(IHtmlContent minorTimeHeaderTemplateView)
Parameters:minorTimeHeaderTemplateViewIHtmlContent

The Razor View that contains the template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.MinorTimeHeaderTemplateView(Html.Partial("MinorTimeHeaderTemplateView")));
})
)

If enabled, the view will be initially shown in business hours mode. By default, the view is displayed in full day mode.

C#
public SchedulerMultiDayViewBuilder<TView> ShowWorkHours()
Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(w =&gt; w.ShowWorkHours());
})
)

If set to "true", the view will be initially shown in business hours mode. By default, the view is displayed in full day mode.

C#
public SchedulerMultiDayViewBuilder<TView> ShowWorkHours(bool value)
Parameters:valuebool

The enum value that enables or disables the business hours mode.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(w =&gt; w.ShowWorkHours(true));
})
)

Defines the template used to render the time slot cells. The option is supported for Day, Week, WorkWeek, and Timeline views. The available fields in the template are:

  • date: Represents the slot date and time.
  • resources(): Returns the relevant resources for the current slot.
C#
public SchedulerMultiDayViewBuilder<TView> SlotTemplate(string slotTemplate)
Parameters:slotTemplatestring

The value that configures the template content.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.SlotTemplate("&lt;strong&gt;#=kendo.toString(date)#&lt;/strong&gt;"));
})
)

Defines the template used to render the time slot cells. The option is supported for Day, Week, WorkWeek, and Timeline views. The available fields in the template are:

  • date: Represents the slot date and time.
  • resources(): Returns the relevant resources for the current slot.
C#
public SchedulerMultiDayViewBuilder<TView> SlotTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.SlotTemplate(Html.Kendo().Template().AddHtml("&lt;strong&gt;${kendo.toString(data.date)}&lt;/strong&gt;")));
})
)

Defines the template used to render the time slot cells. The option is supported for Day, Week, WorkWeek, and Timeline views. The available fields in the template are:

  • date: Represents the slot date and time.
  • resources(): Returns the relevant resources for the current slot.
C#
public SchedulerMultiDayViewBuilder<TView> SlotTemplateHandler(string slotTemplateHandler)
Parameters:slotTemplateHandlerstring

The JavaScript function that returns the template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.SlotTemplateHandler("getSlotTemplate"));
})
)
&lt;script&gt;
function getSlotTemplate(data) {
return `&lt;strong&gt;${kendo.toString(data.date)}&lt;/strong&gt;`;
}
&lt;/script&gt;

Defines the template used to render the time slot cells. The option is supported for Day, Week, WorkWeek, and Timeline views. The available fields in the template are:

  • date: Represents the slot date and time.
  • resources(): Returns the relevant resources for the current slot.
C#
public SchedulerMultiDayViewBuilder<TView> SlotTemplateId(string slotTemplateId)
Parameters:slotTemplateIdstring

The "id" attribute of the external Kendo UI Template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.SlotTemplateId("slotTemplate"));
})
)
&lt;script id="slotTemplate" type="text/x-kendo-template"&gt;
&lt;strong&gt;#=kendo.toString(date)#&lt;/strong&gt;
&lt;/script&gt;

Defines the template used to render the time slot cells. The option is supported for Day, Week, WorkWeek, and Timeline views. The available fields in the template are:

  • date: Represents the slot date and time.
  • resources(): Returns the relevant resources for the current slot.
C#
public SchedulerMultiDayViewBuilder<TView> SlotTemplateView(IHtmlContent slotTemplateView)
Parameters:slotTemplateViewIHtmlContent

The Razor View that contains the template.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; dayView.SlotTemplateView(Html.Partial("SlotTemplateView")));
})
)

Sets the start time of the view. The Scheduler will display events starting after the specified start time.

C#
public SchedulerMultiDayViewBuilder<TView> StartTime(DateTime startTime)
Parameters:startTimeDateTime

The value that configures the start time.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;TaskViewModel&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; {
dayView.StartTime(new DateTime(2013, 6, 13, 10, 00, 00));
dayView.EndTime(new DateTime(2013, 6, 13, 23, 00, 00));
});
})
)

Sets the start time of the view. The Scheduler will display events starting after the specified start time.

C#
public SchedulerMultiDayViewBuilder<TView> StartTime(int hours, int minutes, int seconds)
Parameters:hoursint

The hours

minutesint

The minutes

secondsint

The seconds

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;TaskViewModel&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(dayView =&gt; {
dayView.StartTime(10,0,0);
dayView.EndTime(new DateTime(2013, 6, 13, 23, 00, 00));
});
})
)

Enables the DOM virtualization for vertical grouping of the view - renders batches of DOM elements as you scroll. The views that support this option are Day, Week, WorkWeek, and Month.

C#
public SchedulerMultiDayViewBuilder<TView> Virtual(bool enable)
Parameters:enablebool

The option that enables or disables the virtualization.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(w =&gt; w.Virtual(false));
})
)

If disabled, the Scheduler will not display the "WorkDayCommand" button. By default, the button is displayed.

C#
public SchedulerMultiDayViewBuilder<TView> WorkDayCommand(bool showWorkDayCommand)
Parameters:showWorkDayCommandbool

The enum value that toggles the visibility of the "WorkDayCommand" button.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(w =&gt; w.WorkDayCommand(false));
})
)

Sets the end time of the business hours. The Scheduler will display events before the specified WorkDayEnd() if the "WorkDayCommand" button is clicked.

C#
public SchedulerMultiDayViewBuilder<TView> WorkDayEnd(DateTime workDayEnd)
Parameters:workDayEndDateTime

The value that configures the end time.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(w =&gt; w.WorkDayEnd(new DateTime(2013, 6, 13, 18, 00, 00)));
})
)

Sets the end time of the business hours. The Scheduler will display events before the specified WorkDayEnd() if the "WorkDayCommand" button is clicked.

C#
public SchedulerMultiDayViewBuilder<TView> WorkDayEnd(int hours, int minutes, int seconds)
Parameters:hoursint

The hours

minutesint

The minutes

secondsint

The seconds

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(w =&gt; w.WorkDayEnd(6,0,0));
})
)

Sets the working days (index based).

C#
public SchedulerMultiDayViewBuilder<TView> WorkDays(int[] workDays)
Parameters:workDaysint[]

The array that contains the indexes of the weekdays.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(w =&gt; w.WorkDays(new[] { 3, 4, 5}));
})
)

Sets the start time of the business hours. The Scheduler will display events after the specified WorkDayStart() if the "WorkDayCommand" button is clicked.

C#
public SchedulerMultiDayViewBuilder<TView> WorkDayStart(DateTime workDayStart)
Parameters:workDayStartDateTime

The value that configures the start time.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(w =&gt; w.WorkDayStart(DateTime.Now));
})
)

Sets the start time of the business hours. The Scheduler will display events after the specified WorkDayStart() if the "WorkDayCommand" button is clicked.

C#
public SchedulerMultiDayViewBuilder<TView> WorkDayStart(int hours, int minutes, int seconds)
Parameters:hoursint

The hours

minutesint

The minutes

secondsint

The seconds

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(w =&gt; w.WorkDayStart(3, 5, 7));
})
)

Sets the end day of the working week by index.

C#
public SchedulerMultiDayViewBuilder<TView> WorkWeekEnd(int workWeekEndDay)
Parameters:workWeekEndDayint

The index of the end day.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(w =&gt; w.WorkWeekEnd(4));
})
)

Sets the start day of the working week by index.

C#
public SchedulerMultiDayViewBuilder<TView> WorkWeekStart(int workWeekStartDay)
Parameters:workWeekStartDayint

The index of the start day.

Returns:

SchedulerMultiDayViewBuilder<TView>

Returns the current SchedulerMultiDayViewBuilder<TView> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.DayView(w =&gt; w.WorkWeekStart(2));
})
)