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

SchedulerTimelineViewBuilderBase

Methods

EventHeight(System.Int32)

Parameters

eventHeight - System.Int32

ColumnWidth(System.Int32)

Parameters

columnWidth - System.Int32

MajorTick(System.Int32)

Parameters

majorTick - System.Int32

MinorTickCount(System.Int32)

Parameters

minorTickCount - System.Int32

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.TimelineView(timelineView => {
                        timelineView.Title("Day");
                        timelineView.StartTime(new DateTime(2013, 6, 13, 10, 00, 00));
                        timelineView.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.TimelineView(timelineView => {
                        timelineView.Title("Day");
                        timelineView.StartTime(10,0,0);
                        timelineView.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.TimelineView(timelineView => {
                        timelineView.Title("Day");
                        timelineView.StartTime(new DateTime(2013, 6, 13, 10, 00, 00));
                        timelineView.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.TimelineView(timelineView => {
                        timelineView.Title("Day");
                        timelineView.StartTime(new DateTime(2013, 6, 13, 10, 00, 00));
                        timelineView.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")
                )
            )

GroupHeaderTemplate(System.String)

Parameters

groupHeaderTemplate - System.String

GroupHeaderTemplateId(System.String)

Parameters

groupHeaderTemplateId - System.String

GroupHeaderTemplateView(System.Web.Mvc.MvcHtmlString)

Parameters

groupHeaderTemplate - System.Web.Mvc.MvcHtmlString

GroupHeaderTemplateHandler(System.String)

Parameters

groupHeaderTemplate - System.String

WorkDayStart(System.DateTime)

Parameters

workDayStart - System.DateTime

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

Parameters

hours - System.Int32
minutes - System.Int32
seconds - System.Int32

WorkDays(System.Int32[])

Parameters

workDays - System.Int32[]

WorkDayEnd(System.DateTime)

Parameters

workDayEnd - System.DateTime

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

Parameters

hours - System.Int32
minutes - System.Int32
seconds - System.Int32

WorkDayCommand(System.Boolean)

Parameters

showWorkDayCommand - System.Boolean

ShowWorkHours(System.Boolean)

Parameters

value - System.Boolean

ShowWorkHours()

Footer(System.Boolean)

Parameters

showFooter - System.Boolean

WorkWeekStart(System.Int32)

Parameters

workWeekStartDay - System.Int32

WorkWeekEnd(System.Int32)

Parameters

workWeekEndDay - System.Int32

DateHeaderTemplate(System.String)

Parameters

dateHeaderTemplate - System.String

DateHeaderTemplateId(System.String)

Parameters

dateHeaderTemplateId - System.String

DateHeaderTemplateView(System.Web.Mvc.MvcHtmlString)

Parameters

dateHeaderTemplate - System.Web.Mvc.MvcHtmlString

DateHeaderTemplateHandler(System.String)

Parameters

dateHeaderTemplate - System.String

MajorTimeHeaderTemplate(System.String)

Parameters

majorTimeHeaderTemplate - System.String

MajorTimeHeaderTemplateId(System.String)

Parameters

majorTimeHeaderTemplateId - System.String

MajorTimeHeaderTemplateView(System.Web.Mvc.MvcHtmlString)

Parameters

majorTimeHeaderTemplate - System.Web.Mvc.MvcHtmlString

MajorTimeHeaderTemplateHandler(System.String)

Parameters

majorTimeHeaderTemplate - System.String

SlotTemplate(System.String)

Parameters

slotTemplate - System.String

SlotTemplateId(System.String)

Parameters

slotTemplateId - System.String

SlotTemplateView(System.Web.Mvc.MvcHtmlString)

Parameters

slotTemplate - System.Web.Mvc.MvcHtmlString

SlotTemplateHandler(System.String)

Parameters

slotTemplate - System.String

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?