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

SchedulerBaseViewBuilder

Methods

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)

Parameters

configurator - System.Action<SchedulerViewEditableSettingsBuilder>

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)

Parameters

eventTemplate - System.String

EventTemplateId(System.String)

Parameters

eventTemplateId - System.String

EventTemplateView(System.Web.Mvc.MvcHtmlString)

Parameters

eventTemplate - System.Web.Mvc.MvcHtmlString

EventTemplateHandler(System.String)

Parameters

eventTemplate - 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 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)

Parameters

orientation - SchedulerGroupOrientation

Groups(System.Boolean)

Parameters

date - System.Boolean

Groups(System.Action)

Parameters

configuration - System.Action<SchedulerGroupBuilder>
In this article
Not finding the help you need?