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

SchedulerMultiDayViewBuilder

Methods

AllDayEventTemplate(System.String)

The template used to render the "all day" scheduler events.

Parameters

allDayEventTemplate - System.String

The allDayEventTemplate

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .AllDayEventTemplate("AllDayEventTemplate")
                   )

AllDayEventTemplateId(System.String)

The Id of the template used to render the "all day" scheduler events.

Parameters

allDayEventTemplateId - System.String

The allDayEventTemplateId

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .AllDayEventTemplateId("AllDayEventTemplateId")
                   )

AllDayEventTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

The view which contains the template used to render the "all day" scheduler events.

Parameters

allDayEventTemplateView - Microsoft.AspNetCore.Html.IHtmlContent

The allDayEventTemplateView

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .AllDayEventTemplateView(Html.Partial("AllDayEventTemplate"))
                   )

AllDayEventTemplateHandler(System.String)

Parameters

allDayEventTemplateHandler - System.String

GroupHeaderTemplate(System.String)

The template used to render the group headers of scheduler day, week, workWeek and timeline views.

Parameters

groupHeaderTemplate - System.String

The groupHeaderTemplate

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .GroupHeaderTemplate("GroupHeaderTemplate")
                   )

GroupHeaderTemplateId(System.String)

The Id of the template used to render the group headers of scheduler day, week, workWeek and timeline views.

Parameters

groupHeaderTemplateId - System.String

The groupHeaderTemplateId

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .GroupHeaderTemplateId("GroupHeaderTemplateId")
                   )

GroupHeaderTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

The view which contains the template used to render the group headers of scheduler day, week, workWeek and timeline views.

Parameters

groupHeaderTemplateView - Microsoft.AspNetCore.Html.IHtmlContent

The groupHeaderTemplateView

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .GroupHeaderTemplateView(Html.Partial("GroupHeaderTemplate"))
                   )

GroupHeaderTemplateHandler(System.String)

Parameters

groupHeaderTemplateHandler - System.String

AllDaySlot(System.Boolean)

If set to true the scheduler will display a slot for "all day" events. Default value is true.

Parameters

allDaySlot - System.Boolean

The allDaySlot

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .AllDaySlot(true)
                   )

DateHeaderTemplate(System.String)

The template used to render the date header cells.

Parameters

dateHeaderTemplate - System.String

The dateHeaderTemplate

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .DateHeaderTemplate("DateHeaderTemplate")
                   )

DateHeaderTemplateId(System.String)

The Id of the template used to render the date header cells.

Parameters

dateHeaderTemplateId - System.String

The dateHeaderTemplateId

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .DateHeaderTemplateId("DateHeaderTemplateId")
                   )

DateHeaderTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

The view which contains the template used to render the date header cells.

Parameters

dateHeaderTemplateView - Microsoft.AspNetCore.Html.IHtmlContent

The dateHeaderTemplateView

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .DateHeaderTemplateView(Html.Partial("DateHeaderTemplate"))
                   )

DateHeaderTemplateHandler(System.String)

Parameters

dateHeaderTemplateHandler - System.String

MajorTick(System.Int32)

The number of minutes represented by a major tick.

Parameters

majorTick - System.Int32

The majorTick

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .MajorTick(20)
                   )

AllDaySlotTemplate(System.String)

The template used to render the all day slot content

Parameters

slotTemplate - System.String

The slotTemplate

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .AllDaySlotTemplate("AllDaySlotTemplate")
                   )

AllDaySlotTemplateId(System.String)

The Id of the template used to render the all day slot content.

Parameters

slotTemplateId - System.String

The id of template

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .AllDaySlotTemplateId("AllDaySlotTemplateId")
                   )

AllDaySlotTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

The view which contains the template used to render the all day slot content.

Parameters

slotTemplateView - Microsoft.AspNetCore.Html.IHtmlContent

The view template

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .AllDaySlotTemplateView(Html.Partial("AllDaySlotTemplate"))
                   )

AllDaySlotTemplateHandler(System.String)

Parameters

slotTemplateHandler - System.String

SlotTemplate(System.String)

The template used to render the slot content

Parameters

slotTemplate - System.String

The slotTemplate

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .SlotTemplate("SlotTemplate")
                   )

SlotTemplateId(System.String)

The Id of the template used to render the slot content.

Parameters

slotTemplateId - System.String

The id of template

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .SlotTemplateId("SlotTemplateId")
                   )

SlotTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

The view which contains the template used to render the slot content.

Parameters

slotTemplateView - Microsoft.AspNetCore.Html.IHtmlContent

The view template

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .SlotTemplateView(Html.Partial("SlotTemplate"))
                   )

SlotTemplateHandler(System.String)

Parameters

slotTemplateHandler - System.String

MajorTimeHeaderTemplate(System.String)

The template used to render the major ticks.

Parameters

majorTimeHeaderTemplate - System.String

The majorTimeHeaderTemplate

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .MajorTimeHeaderTemplate("MajorTimeHeaderTemplate")
                   )

MajorTimeHeaderTemplateId(System.String)

The Id of the template used to render the major ticks.

Parameters

majorTimeHeaderTemplateId - System.String

The majorTimeHeaderTemplateId

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .MajorTimeHeaderTemplateId("MajorTimeHeaderTemplateId")
                   )

MajorTimeHeaderTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

The view which contains the template used to render the major ticks.

Parameters

majorTimeHeaderTemplateView - Microsoft.AspNetCore.Html.IHtmlContent

The majorTimeHeaderTemplateView

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .MajorTimeHeaderTemplateView(Html.Partial("MajorTimeHeaderTemplate"))
                   )

MajorTimeHeaderTemplateHandler(System.String)

Parameters

majorTimeHeaderTemplateHandler - System.String

MinorTickCount(System.Int32)

The number of time slots to display per major tick.

Parameters

minorTickCount - System.Int32

The minorTickCount

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .MinorTickCount(20)
                   )

MinorTimeHeaderTemplate(System.String)

The template used to render the minor ticks.

Parameters

minorTimeHeaderTemplate - System.String

The minorTimeHeaderTemplate

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .MinorTimeHeaderTemplate("MinorTimeHeaderTemplate")
                   )

MinorTimeHeaderTemplateId(System.String)

The Id of the template used to render the minor ticks.

Parameters

minorTimeHeaderTemplateId - System.String

The minorTimeHeaderTemplateId

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .MinorTimeHeaderTemplateId("MinorTimeHeaderTemplateId")
                   )

MinorTimeHeaderTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

The view which contains the template used to render the minor ticks.

Parameters

minorTimeHeaderTemplateView - Microsoft.AspNetCore.Html.IHtmlContent

The minorTimeHeaderTemplateView

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .MinorTimeHeaderTemplateView(Html.Partial("MinorTimeHeaderTemplate"))
                   )

MinorTimeHeaderTemplateHandler(System.String)

Parameters

minorTimeHeaderTemplateHandler - System.String

StartTime(System.DateTime)

The start time of the view. The scheduler will display events starting after the startTime.

Parameters

startTime - System.DateTime

The startTime

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.StartTime(new DateTime(2013, 6, 13, 10, 00, 00));
                        dayView.EndTime(new DateTime(2013, 6, 13, 23, 00, 00));
                    });
                })
                .DataSource(d => d
                    .Model(m => m.Id(f => f.TaskID))
                        .Read("Read", "Scheduler")
                        .Create("Create", "Scheduler")
                        .Destroy("Destroy", "Scheduler")
                        .Update("Update", "Scheduler")
                )
            )

StartTime(System.Int32,System.Int32,System.Int32)

The start time of the view. The scheduler will display events starting after the startTime.

Parameters

hours - System.Int32

The hours

minutes - System.Int32

The minutes

seconds - System.Int32

The seconds

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.StartTime(10,0,0);
                        dayView.EndTime(new DateTime(2013, 6, 13, 23, 00, 00));
                    });
                })
                .DataSource(d => d
                    .Model(m => m.Id(f => f.TaskID))
                        .Read("Read", "Scheduler")
                        .Create("Create", "Scheduler")
                        .Destroy("Destroy", "Scheduler")
                        .Update("Update", "Scheduler")
                )
            )

EndTime(System.DateTime)

The end time of the view. The scheduler will display events ending before the endTime.

Parameters

endTime - System.DateTime

The endTime

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.StartTime(new DateTime(2013, 6, 13, 10, 00, 00));
                        dayView.EndTime(new DateTime(2013, 6, 13, 23, 00, 00));
                    });
                })
                .DataSource(d => d
                    .Model(m => m.Id(f => f.TaskID))
                        .Read("Read", "Scheduler")
                        .Create("Create", "Scheduler")
                        .Destroy("Destroy", "Scheduler")
                        .Update("Update", "Scheduler")
                )
            )

EndTime(System.Int32,System.Int32,System.Int32)

The end time of the view. The scheduler will display events ending before the endTime.

Parameters

hours - System.Int32

The hours

minutes - System.Int32

The minutes

seconds - System.Int32

The seconds

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.StartTime(new DateTime(2013, 6, 13, 10, 00, 00));
                        dayView.EndTime(23,0,0);
                    });
                })
                .DataSource(d => d
                    .Model(m => m.Id(f => f.TaskID))
                        .Read("Read", "Scheduler")
                        .Create("Create", "Scheduler")
                        .Destroy("Destroy", "Scheduler")
                        .Update("Update", "Scheduler")
                )
            )

WorkDayStart(System.DateTime)

The start time of the business hours. The scheduler will display events after the workDayStart if "WorkDayCommand" button is clicked.

Parameters

workDayStart - System.DateTime

The WorkDayStart

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .Views(views =>
                        {
                            views.DayView(w => w.WorkDayStart(DateTime.Now));
                        })
                   )

WorkDayStart(System.Int32,System.Int32,System.Int32)

The start time of the business hours. The scheduler will display events after the workDayStart if "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 indices of the days of the week

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .Views(views =>
                        {
                            views.DayView(w => w.WorkDays(new[] { 3, 4, 5}));
                        })
                   )

WorkDayEnd(System.DateTime)

The end time of the business hours. The scheduler will display events before the workDayEnd if "WorkDayCommand" button is clicked.

Parameters

workDayEnd - System.DateTime

The WorkDayEnd

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .Views(views =>
                        {
                            views.DayView(w => w.WorkDayEnd(3, 5, 7));
                        })
                   )

WorkDayEnd(System.Int32,System.Int32,System.Int32)

The end time of the business hours. The scheduler will display events before the workDayEnd if "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(new[] { 3, 4, 5}));
                        })
                   )

WorkDayCommand(System.Boolean)

If set to false the scheduler will not display the "WorkDayCommand" button. Default value is true.

Parameters

showWorkDayCommand - System.Boolean

The showWorkDayCommand

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .Views(views =>
                        {
                            views.DayView(w => w.WorkDayCommand(true));
                        })
                   )

ShowWorkHours(System.Boolean)

If set to true the view will be initially shown in business hours mode.

Parameters

value - System.Boolean

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.

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .Views(views =>
                        {
                            views.DayView(w => w.ShowWorkHours(true));
                        })
                   )

Footer(System.Boolean)

If set to false the scheduler will not display the "footer" area. Default value is true.

Parameters

showFooter - System.Boolean

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 work week by index.

Parameters

workWeekStartDay - System.Int32

The workWeekStartDay

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .Views(views =>
                        {
                            views.WorkWeekStart(2);
                        })
                   )

WorkWeekEnd(System.Int32)

Sets the end day of work week by index.

Parameters

workWeekEndDay - System.Int32

The workWeekEndDay

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .Views(views =>
                        {
                            views.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", "month".

Parameters

enable - System.Boolean

Example


                   @(Html.Kendo().Scheduler<Activity>()
                        .Name("scheduler")
                        .Views(views =>
                        {
                            views.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<Kendo.Mvc.Examples.Models.Scheduler.Task>()
                .Name("scheduler")
                .Date(new DateTime(2013, 6, 13))
                .Editable(editable =>
                {
                    editable.Confirmation(false);
                    editable.TemplateId("customEditTemplate");
                })
                .DataSource(d => d
                    .Model(m => m.Id(f => f.TaskID))
                        .Read("Read", "Scheduler")
                        .Create("Create", "Scheduler")
                        .Destroy("Destroy", "Scheduler")
                        .Update("Update", "Scheduler")
                )
            )

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)

The template used by the view to render the scheduler events.

Parameters

eventTemplate - System.String

The eventTemplate.

Example


            @(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Screening>()
                .Name("scheduler")
                .Date(new DateTime(2013, 6, 13))
                .StartTime(new DateTime(2013, 6, 13, 10, 00, 00))
                .EndTime(new DateTime(2013, 6, 13, 23, 00, 00))
                .Height(600)
                .EventTemplate(
                    "<div style='color:white'>" +
                        "<img src='" + Url.Content("~/Content/web/scheduler/") + "#= Image #' style='float:left'>" +
                        "<p>" +
                            "#: kendo.toString(Start, 'hh:mm') # - #: kendo.toString(End, 'hh:mm') #" +
                        "</p>" +
                        "<h3>#: title #</h3>" +
                            "<a href='#= Imdb #' style='color:white'>Movie in IMDB</a>" +
                    "</div>")
                .Views(views =>
                    {
                        views.DayView();
                        views.AgendaView();
                    })
                .BindTo(Model)
            )

EventTemplateId(System.String)

The Id of the template used by the view to render the scheduler events.

Parameters

eventTemplateId - System.String

The eventTemplateId

Example


            @(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Screening>()
                .Name("scheduler")
                .Date(new DateTime(2013, 6, 13))
                .StartTime(new DateTime(2013, 6, 13, 10, 00, 00))
                .EndTime(new DateTime(2013, 6, 13, 23, 00, 00))
                .Height(600)
                .EventTemplateId("customEventTemplate")
                .Views(views =>
                    {
                        views.DayView();
                        views.AgendaView();
                    })
                .BindTo(Model)
            )

EventTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

The view which contains the template used by the view to render the scheduler events.

Parameters

eventTemplateView - Microsoft.AspNetCore.Html.IHtmlContent

The eventTemplateView

Example


            @(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Screening>()
                .Name("scheduler")
                .Date(new DateTime(2013, 6, 13))
                .StartTime(new DateTime(2013, 6, 13, 10, 00, 00))
                .EndTime(new DateTime(2013, 6, 13, 23, 00, 00))
                .Height(600)
                .EventTemplateView(Html.Partial("customEventTemplate"))
                .Views(views =>
                    {
                        views.DayView();
                        views.AgendaView();
                    })
                .BindTo(Model)
            )

EventTemplateHandler(System.String)

Parameters

eventTemplateHandler - System.String

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 short selected 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))); })
                )

In this article
Not finding the help you need?