SchedulerWeekViewBuilder
Methods
AllDayEventTemplate(System.String)
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.
Parameters
allDayEventTemplate - System.String
The value that configures the template content.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.AllDayEventTemplate("<h3>#: title #</h3>"));
})
)
AllDayEventTemplateId(System.String)
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.
Parameters
allDayEventTemplateId - System.String
The "id" attribute of the external Kendo UI Template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.AllDayEventTemplateId("allDayTemplate"));
})
)
<script id="allDayTemplate" type="text/x-kendo-template">
<h3>#: title #</h3>
</script>
AllDayEventTemplateView(System.Web.Mvc.MvcHtmlString)
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.
Parameters
allDayEventTemplate - System.Web.Mvc.MvcHtmlString
The Razor View that contains the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.AllDayEventTemplateView(Html.Partial("AllDayEventTemplateView")));
})
)
AllDayEventTemplateHandler(System.String)
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.
Parameters
allDayEventTemplate - System.String
The JavaScript function that returns the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.AllDayEventTemplateHandler("getAllDayEventTemplate"));
})
)
<script>
function getAllDayEventTemplate(data) {
return `<h3>${data.title}</h3>`;
}
</script>
AllDayEventTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)
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.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.AllDayEventTemplate(Html.Kendo().Template().AddHtml("<h3>${data.title}</h3>")));
})
)
GroupHeaderTemplate(System.String)
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.
Parameters
groupHeaderTemplate - System.String
The value that configures the template content.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.GroupHeaderTemplate("<strong style='color: #=color#'>#: text #</strong>"));
})
)
GroupHeaderTemplateId(System.String)
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.
Parameters
groupHeaderTemplateId - System.String
The "id" attribute of the external Kendo UI Template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.GroupHeaderTemplateId("groupHeaderTemplate"));
})
)
<script id="groupHeaderTemplate" type="text/x-kendo-template">
<strong style='color: #=color#'>#: text #</strong>
</script>
GroupHeaderTemplateView(System.Web.Mvc.MvcHtmlString)
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.
Parameters
groupHeaderTemplate - System.Web.Mvc.MvcHtmlString
The Razor View that contains the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.GroupHeaderTemplateView(Html.Partial("GroupHeaderTemplateView")));
})
)
GroupHeaderTemplateHandler(System.String)
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.
Parameters
groupHeaderTemplate - System.String
The JavaScript function that returns the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.GroupHeaderTemplateHandler("getGroupHeaderTemplate"));
})
)
<script>
function getGroupHeaderTemplate(data) {
return `<strong style='color: ${data.color}'>${data.text}</strong>`;
}
</script>
GroupHeaderTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)
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.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.GroupHeaderTemplate(Html.Kendo().Template().AddHtml("<strong style='color: ${data.color}'>${data.text}</strong>")));
})
)
AllDaySlot(System.Boolean)
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.
Parameters
allDaySlot - System.Boolean
The enum value that enables or disables the slot.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.AllDaySlot(false));
})
)
DateHeaderTemplate(System.String)
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.
Parameters
dateHeaderTemplate - System.String
The value that configures the template content.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.DateHeaderTemplate("<strong>#=kendo.toString(date, 'd')#</strong>"));
})
)
DateHeaderTemplateId(System.String)
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.
Parameters
dateHeaderTemplateId - System.String
The "id" attribute of the external Kendo UI Template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.DateHeaderTemplateId("dateHeaderTemplate"));
})
)
<script id="dateHeaderTemplate" type="text/x-kendo-template">
<strong>#=kendo.toString(date, 'd')#</strong>
</script>
DateHeaderTemplateView(System.Web.Mvc.MvcHtmlString)
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.
Parameters
dateHeaderTemplate - System.Web.Mvc.MvcHtmlString
The Razor View that contains the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.DateHeaderTemplateView(Html.Partial("DateHeaderTemplateView")));
})
)
DateHeaderTemplateHandler(System.String)
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.
Parameters
dateHeaderTemplate - System.String
The JavaScript function that returns the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.DateHeaderTemplateHandler("getDateHeaderTemplate"));
})
)
<script>
function getDateHeaderTemplate(data) {
return `<strong>${kendo.toString(data.date, 'd')}</strong>`;
}
</script>
DateHeaderTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)
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.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.DateHeaderTemplate(Html.Kendo().Template().AddHtml("<strong>${kendo.toString(data.date, 'd')}</strong>")));
})
)
MajorTick(System.Int32)
Defines the number of minutes represented by a major tick. The option is supported for Day and Week views.
Parameters
majorTick - System.Int32
The value that configures the number of minutes.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.MajorTick(120));
})
)
AllDaySlotTemplate(System.String)
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.
Parameters
slotTemplate - System.String
The value that configures the template content.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.AllDaySlotTemplate("<strong>#=kendo.toString(date)#</strong>"));
})
)
AllDaySlotTemplateId(System.String)
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.
Parameters
slotTemplateId - System.String
The "id" attribute of the external Kendo UI Template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.AllDaySlotTemplateId("allDaySlotTemplate"));
})
)
<script id="allDaySlotTemplate" type="text/x-kendo-template">
<strong>#=kendo.toString(date)#</strong>
</script>
AllDaySlotTemplateView(System.Web.Mvc.MvcHtmlString)
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.
Parameters
slotTemplate - System.Web.Mvc.MvcHtmlString
The Razor View that contains the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.AllDaySlotTemplateView(Html.Partial("AllDaySlotTemplateView")));
})
)
AllDaySlotTemplateHandler(System.String)
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.
Parameters
slotTemplate - System.String
The JavaScript function that returns the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.AllDaySlotTemplateHandler("getAllDaySlotTemplate"));
})
)
<script>
function getAllDaySlotTemplate(data) {
return `<strong>${kendo.toString(data.date)}</strong>`;
}
</script>
AllDaySlotTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)
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.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.AllDaySlotTemplate(Html.Kendo().Template().AddHtml("<strong>${kendo.toString(data.date)}</strong>")));
})
)
SlotTemplate(System.String)
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.
Parameters
slotTemplate - System.String
The value that configures the template content.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.SlotTemplate("<strong>#=kendo.toString(date)#</strong>"));
})
)
SlotTemplateId(System.String)
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.
Parameters
slotTemplateId - System.String
The "id" attribute of the external Kendo UI Template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.SlotTemplateId("slotTemplate"));
})
)
<script id="slotTemplate" type="text/x-kendo-template">
<strong>#=kendo.toString(date)#</strong>
</script>
SlotTemplateView(System.Web.Mvc.MvcHtmlString)
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.
Parameters
slotTemplate - System.Web.Mvc.MvcHtmlString
The Razor View that contains the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.SlotTemplateView(Html.Partial("SlotTemplateView")));
})
)
SlotTemplateHandler(System.String)
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.
Parameters
slotTemplate - System.String
The JavaScript function that returns the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.SlotTemplateHandler("getSlotTemplate"));
})
)
<script>
function getSlotTemplate(data) {
return `<strong>${kendo.toString(data.date)}</strong>`;
}
</script>
SlotTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)
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.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.SlotTemplate(Html.Kendo().Template().AddHtml("<strong>${kendo.toString(data.date)}</strong>")));
})
)
MajorTimeHeaderTemplate(System.String)
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.
Parameters
majorTimeHeaderTemplate - System.String
The value that configures the template content.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.MajorTimeHeaderTemplate("<strong>#=kendo.toString(date, 'h')#</strong><sup>00</sup>"));
})
)
MajorTimeHeaderTemplateId(System.String)
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.
Parameters
majorTimeHeaderTemplateId - System.String
The "id" attribute of the external Kendo UI Template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.MajorTimeHeaderTemplateId("majorHeaderTemplate"));
})
)
<script id="majorHeaderTemplate" type="text/x-kendo-template">
<strong>#=kendo.toString(date, 'h')#</strong><sup>00</sup>
</script>
MajorTimeHeaderTemplateView(System.Web.Mvc.MvcHtmlString)
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.
Parameters
majorTimeHeaderTemplate - System.Web.Mvc.MvcHtmlString
The Razor View that contains the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.MajorTimeHeaderTemplateView(Html.Partial("MajorHeaderTemplateView")));
})
)
MajorTimeHeaderTemplateHandler(System.String)
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.
Parameters
majorTimeHeaderTemplate - System.String
The JavaScript function that returns the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.MajorTimeHeaderTemplateHandler("getMajorTimeHeaderTemplate"));
})
)
<script>
function getMajorTimeHeaderTemplate(data) {
return `<strong>${kendo.toString(data.date, 'h')}</strong><sup>00</sup>`;
}
</script>
MajorTimeHeaderTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)
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.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.MajorTimeHeaderTemplate(Html.Kendo().Template().AddHtml("<strong>${kendo.toString(data.date, 'h')}</strong><sup>00</sup>")));
})
)
MinorTickCount(System.Int32)
Defines the number of time slots displayed per major tick. The option is supported for Day, Week, and Timeline views.
Parameters
minorTickCount - System.Int32
The value that configures the number of time slots.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.MinorTickCount(1));
})
)
MinorTimeHeaderTemplate(System.String)
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.
Parameters
minorTimeHeaderTemplate - System.String
The value that configures the template content.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.MinorTimeHeaderTemplate("<strong>#=kendo.toString(date, 't')#</strong>"));
})
)
MinorTimeHeaderTemplateId(System.String)
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.
Parameters
minorTimeHeaderTemplateId - System.String
The "id" attribute of the external Kendo UI Template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.MinorTimeHeaderTemplateId("minorHeaderTemplate"));
})
)
<script id="minorHeaderTemplate" type="text/x-kendo-template">
<strong>#=kendo.toString(date, 't')#</strong>
</script>
MinorTimeHeaderTemplateView(System.Web.Mvc.MvcHtmlString)
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.
Parameters
minorTimeHeaderTemplate - System.Web.Mvc.MvcHtmlString
The Razor View that contains the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.MinorTimeHeaderTemplateView(Html.Partial("MinorTimeHeaderTemplateView")));
})
)
MinorTimeHeaderTemplateHandler(System.String)
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.
Parameters
minorTimeHeaderTemplate - System.String
The JavaScript function that returns the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.MinorTimeHeaderTemplateHandler("getMinorTimeHeaderTemplate"));
})
)
<script>
function getMinorTimeHeaderTemplate(data) {
return `<strong>${kendo.toString(data.date, 't')}</strong>`;
}
</script>
MinorTimeHeaderTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)
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.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.MinorTimeHeaderTemplate(Html.Kendo().Template().AddHtml("<strong>${kendo.toString(data.date, 't')}</strong>")));
})
)
StartTime(System.DateTime)
Sets the start time of the view. The Scheduler will display events starting after the specified start time.
Parameters
startTime - System.DateTime
The value that configures the start time.
Example
@(Html.Kendo().Scheduler<TaskViewModel>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => {
dayView.StartTime(new DateTime(2013, 6, 13, 10, 00, 00));
dayView.EndTime(new DateTime(2013, 6, 13, 23, 00, 00));
});
})
)
StartTime(System.Int32,System.Int32,System.Int32)
Sets the start time of the view. The Scheduler will display events starting after the specified start time.
Parameters
hours - System.Int32
The hours
minutes - System.Int32
The minutes
seconds - System.Int32
The seconds
Example
@(Html.Kendo().Scheduler<TaskViewModel>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => {
dayView.StartTime(10,0,0);
dayView.EndTime(new DateTime(2013, 6, 13, 23, 00, 00));
});
})
)
EndTime(System.DateTime)
Sets the end time of the view. The Scheduler will display events ending before the end time.
Parameters
endTime - System.DateTime
The value that configures the end time.
Example
@(Html.Kendo().Scheduler<TaskViewModel>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => {
dayView.StartTime(new DateTime(2013, 6, 13, 10, 00, 00));
dayView.EndTime(new DateTime(2013, 6, 13, 23, 00, 00));
});
})
)
EndTime(System.Int32,System.Int32,System.Int32)
Sets the end time of the view. The Scheduler will display events ending before the end time.
Parameters
hours - System.Int32
The hours
minutes - System.Int32
The minutes
seconds - System.Int32
The seconds
Example
@(Html.Kendo().Scheduler<TaskViewModel>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => {
dayView.StartTime(new DateTime(2013, 6, 13, 10, 00, 00));
dayView.EndTime(23,0,0);
});
})
)
WorkDayStart(System.DateTime)
Sets the start time of the business hours. The Scheduler will display events after the specified WorkDayStart() if the "WorkDayCommand" button is clicked.
Parameters
workDayStart - System.DateTime
The value that configures the start time.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(w => w.WorkDayStart(DateTime.Now));
})
)
WorkDayStart(System.Int32,System.Int32,System.Int32)
Sets the start time of the business hours. The Scheduler will display events after the specified WorkDayStart() if the "WorkDayCommand" button is clicked.
Parameters
hours - System.Int32
The hours
minutes - System.Int32
The minutes
seconds - System.Int32
The seconds
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(w => w.WorkDayStart(3, 5, 7));
})
)
WorkDays(System.Int32[])
Sets the working days (index based).
Parameters
workDays - System.Int32[]
The array that contains the indexes of the weekdays.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(w => w.WorkDays(new[] { 3, 4, 5}));
})
)
WorkDayEnd(System.DateTime)
Sets the end time of the business hours. The Scheduler will display events before the specified WorkDayEnd() if the "WorkDayCommand" button is clicked.
Parameters
workDayEnd - System.DateTime
The value that configures the end time.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(w => w.WorkDayEnd(new DateTime(2013, 6, 13, 18, 00, 00)));
})
)
WorkDayEnd(System.Int32,System.Int32,System.Int32)
Sets the end time of the business hours. The Scheduler will display events before the specified WorkDayEnd() if the "WorkDayCommand" button is clicked.
Parameters
hours - System.Int32
The hours
minutes - System.Int32
The minutes
seconds - System.Int32
The seconds
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(w => w.WorkDayEnd(6,0,0));
})
)
WorkDayCommand(System.Boolean)
If disabled, the Scheduler will not display the "WorkDayCommand" button. By default, the button is displayed.
Parameters
showWorkDayCommand - System.Boolean
The enum value that toggles the visibility of the "WorkDayCommand" button.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(w => w.WorkDayCommand(false));
})
)
ShowWorkHours(System.Boolean)
If set to "true", the view will be initially shown in business hours mode. By default, the view is displayed in full day mode.
Parameters
value - System.Boolean
The enum value that enables or disables the business hours mode.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(w => w.ShowWorkHours(true));
})
)
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.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(w => w.ShowWorkHours(true));
})
)
Footer(System.Boolean)
If set to "false", the footer of the Scheduler will not be displayed. By default, the footer is visible.
Parameters
showFooter - System.Boolean
The enum value that toggles the visibility of the footer.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(w => w.Footer(false));
})
)
WorkWeekStart(System.Int32)
Sets the start day of the working week by index.
Parameters
workWeekStartDay - System.Int32
The index of the start day.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(w => w.WorkWeekStart(2));
})
)
WorkWeekEnd(System.Int32)
Sets the end day of the working week by index.
Parameters
workWeekEndDay - System.Int32
The index of the end day.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(w => w.WorkWeekEnd(4));
})
)
Virtual(System.Boolean)
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.
Parameters
enable - System.Boolean
The option that enables or disables the virtualization.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(w => w.Virtual(false));
})
)
Title(System.String)
The user-friendly title of the view displayed by the scheduler.
Parameters
title - System.String
The title
Example
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Task>()
.Name("scheduler")
.Date(new DateTime(2013, 6, 13))
.Views(views =>
{
views.DayView(dayView => {
dayView.Title("Day");
});
})
.DataSource(d => d
.Model(m => m.Id(f => f.TaskID))
.Read("Read", "Scheduler")
.Create("Create", "Scheduler")
.Destroy("Destroy", "Scheduler")
.Update("Update", "Scheduler")
)
)
Editable(System.Action)
Sets the editing configuration of the current scheduler view.
Parameters
configurator - System.Action<SchedulerViewEditableSettingsBuilder>
The lambda which configures the editing
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Editable(e=>e.Confirmation(true))
)
Editable(System.Boolean)
If set to true the user would be able to create new scheduler events and modify or delete existing ones. Default value is true.
Parameters
isEditable - System.Boolean
The isEditable
Example
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Task>()
.Name("scheduler")
.Date(new DateTime(2013, 6, 13))
.Views(views =>
{
views.DayView(dayView => {
dayView.Title("Day");
dayView.Editable(false);
});
views.AgendaView();
})
.DataSource(d => d
.Model(m => m.Id(f => f.TaskID))
.Read("Read", "Scheduler")
.Create("Create", "Scheduler")
.Destroy("Destroy", "Scheduler")
.Update("Update", "Scheduler")
)
)
EventTemplate(System.String)
Defines the template used by the view to render the Scheduler events. The available fields in the template are: - description: The event description. - end: The event end date. - resources: The event resources. - start: The event start date. - title: The event title.
Parameters
eventTemplate - System.String
The value that configures the template content.
Example
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Screening>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.EventTemplate("<div>Title: #: title #</div>"));
})
)
EventTemplateId(System.String)
Defines the template used by the view to render the Scheduler events. The available fields in the template are: - description: The event description. - end: The event end date. - resources: The event resources. - start: The event start date. - title: The event title.
Parameters
eventTemplateId - System.String
The "id" attribute of the external Kendo UI Template.
Example
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Screening>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.EventTemplateId("eventTemplate"));
})
)
<script id="eventTemplate" type="text/x-kendo-template">
<div>Title: #: title #</div>
</script>
EventTemplateView(System.Web.Mvc.MvcHtmlString)
Defines the template used by the view to render the Scheduler events. The available fields in the template are: - description: The event description. - end: The event end date. - resources: The event resources. - start: The event start date. - title: The event title.
Parameters
eventTemplate - System.Web.Mvc.MvcHtmlString
The Razor View that contains the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.EventTemplateView(Html.Partial("EventTemplateView")));
})
)
EventTemplateHandler(System.String)
Defines the template used by the view to render the Scheduler events. The available fields in the template are: - description: The event description. - end: The event end date. - resources: The event resources. - start: The event start date. - title: The event title.
Parameters
eventTemplate - System.String
The JavaScript function that returns the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.EventTemplateHandler("getEventTemplate"));
})
)
<script>
function getEventTemplate(data) {
return `<div>Title: ${data.title} </div>`;
}
</script>
EventTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)
Defines the template used by the view to render the Scheduler events. The available fields in the template are: - description: The event description. - end: The event end date. - resources: The event resources. - start: The event start date. - title: The event title.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the template.
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(views =>
{
views.DayView(dayView => dayView.EventTemplate(Html.Kendo().Template().AddHtml("<div>Title: ${data.title}</div>")));
})
)
SelectedDateFormat(System.String)
The format used to display the selected date. Uses kendo.format. Contains two placeholders - "{0}" and "{1}" which represent the start and end date displayed by the view.
Parameters
selectedDateFormat - System.String
The selectedDateFormat.
Example
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Task>()
.Name("scheduler")
.Date(new DateTime(2013, 6, 13))
.Views(views =>
{
views.DayView(dayView => {
dayView.Title("Day");
dayView.Editable(false);
dayView.SelectedDateFormat("{0:dd-MM-yyyy}");
});
views.AgendaView();
})
.DataSource(d => d
.Model(m => m.Id(f => f.TaskID))
.Read("Read", "Scheduler")
.Create("Create", "Scheduler")
.Destroy("Destroy", "Scheduler")
.Update("Update", "Scheduler")
)
)
SelectedShortDateFormat(System.String)
The format used to display the selected short date. Uses kendo.format. Contains two placeholders - "{0}" and "{1}" which represent the start and end date displayed by the view.
Parameters
selectedShortDateFormat - System.String
The selectedShortDateFormat.
Example
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Task>()
.Name("scheduler")
.Date(new DateTime(2013, 6, 13))
.Views(views =>
{
views.DayView(dayView => {
dayView.Title("Day");
dayView.Editable(false);
dayView.SelectedShortDateFormat("{0:dd-MM-yyyy}");
});
views.AgendaView();
})
.DataSource(d => d
.Model(m => m.Id(f => f.TaskID))
.Read("Read", "Scheduler")
.Create("Create", "Scheduler")
.Destroy("Destroy", "Scheduler")
.Update("Update", "Scheduler")
)
)
Selected(System.Boolean)
If set to true the view will be initially selected by the scheduler widget. Default value is false.
Parameters
isSelected - System.Boolean
The isSelected
Example
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Task>()
.Name("scheduler")
.Date(new DateTime(2013, 6, 13))
.Views(views =>
{
views.DayView(dayView => {
dayView.Title("Day");
dayView.Editable(false);
dayView.SelectedDateFormat("{0:dd-MM-yyyy}");
dayView.Selected(true);
});
views.AgendaView();
})
.DataSource(d => d
.Model(m => m.Id(f => f.TaskID))
.Read("Read", "Scheduler")
.Create("Create", "Scheduler")
.Destroy("Destroy", "Scheduler")
.Update("Update", "Scheduler")
)
)
Groups(Kendo.Mvc.UI.SchedulerGroupOrientation)
Sets the orientation of the group headers
Parameters
orientation - SchedulerGroupOrientation
The orientation
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(v=> { v.TimelineMonthView(t => t.Groups(SchedulerGroupOrientation.Default)); })
)
Groups(System.Boolean)
Sets grouping by date.
Parameters
date - System.Boolean
The grouping by date
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(v=> { v.TimelineMonthView(t => t.Groups(true)); })
)
Groups(System.Action)
Sets the resources grouping configuration of the view.
Parameters
configuration - System.Action<SchedulerGroupBuilder>
The lambda which configures the view grouping
Example
@(Html.Kendo().Scheduler<Activity>()
.Name("scheduler")
.Views(v=> { v.TimelineMonthView(t => t.Groups(x=>x.Date(true))); })
)