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

Defines the fluent API for configuring the Kendo UI Scheduler

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

C#
public class SchedulerBuilder<T> : WidgetBuilderBase<Scheduler<T>, SchedulerBuilder<T>>, IHtmlContent where T : class, ISchedulerEvent

Inheritance: objectHelperResultWidgetBuilderBase<Scheduler<T>, SchedulerBuilder<T>>SchedulerBuilder<T>

Implements: IHtmlContent

Inherited Members WidgetBuilderBase<Scheduler<T>, SchedulerBuilder<T>>.ToComponent()WidgetBuilderBase<Scheduler<T>, SchedulerBuilder<T>>.Expression(string)WidgetBuilderBase<Scheduler<T>, SchedulerBuilder<T>>.Explorer(ModelExplorer)WidgetBuilderBase<Scheduler<T>, SchedulerBuilder<T>>.Name(string)WidgetBuilderBase<Scheduler<T>, SchedulerBuilder<T>>.Deferred(bool)WidgetBuilderBase<Scheduler<T>, SchedulerBuilder<T>>.HtmlAttributes(object)WidgetBuilderBase<Scheduler<T>, SchedulerBuilder<T>>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<Scheduler<T>, SchedulerBuilder<T>>.ScriptAttributes(object, bool)WidgetBuilderBase<Scheduler<T>, SchedulerBuilder<T>>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<Scheduler<T>, SchedulerBuilder<T>>.Render()WidgetBuilderBase<Scheduler<T>, SchedulerBuilder<T>>.ToHtmlString()WidgetBuilderBase<Scheduler<T>, SchedulerBuilder<T>>.WriteTo(TextWriter, HtmlEncoder)WidgetBuilderBase<Scheduler<T>, SchedulerBuilder<T>>.ToClientTemplate()WidgetBuilderBase<Scheduler<T>, SchedulerBuilder<T>>.AsModule(bool)WidgetBuilderBase<Scheduler<T>, SchedulerBuilder<T>>.ComponentWidgetBuilderBase<Scheduler<T>, SchedulerBuilder<T>>.ContainerHelperResult.WriteTo(TextWriter, HtmlEncoder)HelperResult.WriteActionobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the SchedulerBuilder<T> class.

C#
public SchedulerBuilder(Scheduler<T> component)
Parameters:componentScheduler<T>

Methods

The template used to render the "all day" scheduler events.The fields which can be used in the template are: description String - the event description; end Date - the event end date; isAllDay Boolean - if true the event is "all day"; resources Array - the event resources; start Date - the event start date or title String - the event title.

C#
public SchedulerBuilder<T> AllDayEventTemplate(string value)
Parameters:valuestring

The value for AllDayEventTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the "all day" scheduler events.The fields which can be used in the template are: description String - the event description; end Date - the event end date; isAllDay Boolean - if true the event is "all day"; resources Array - the event resources; start Date - the event start date or title String - the event title.

C#
public SchedulerBuilder<T> AllDayEventTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the alldayeventtemplate.

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the "all day" scheduler events.The fields which can be used in the template are: description String - the event description; end Date - the event end date; isAllDay Boolean - if true the event is "all day"; resources Array - the event resources; start Date - the event start date or title String - the event title.

C#
public SchedulerBuilder<T> AllDayEventTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for AllDayEventTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the "all day" scheduler events.The fields which can be used in the template are: description String - the event description; end Date - the event end date; isAllDay Boolean - if true the event is "all day"; resources Array - the event resources; start Date - the event start date or title String - the event title.

C#
public SchedulerBuilder<T> AllDayEventTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for AllDayEventTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the "all day" scheduler events.The fields which can be used in the template are: description String - the event description; end Date - the event end date; isAllDay Boolean - if true the event is "all day"; resources Array - the event resources; start Date - the event start date or title String - the event title.

C#
public SchedulerBuilder<T> AllDayEventTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for AllDayEventTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

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

C#
public SchedulerBuilder<T> AllDaySlot(bool value)
Parameters:valuebool

The value for AllDaySlot

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

If set to false the widget will not bind to the data source during initialization. In this case data binding will occur when the change event of the data source is fired. That will also apply for data sources for the resources used in the widget. By default the widget will bind to the data source specified in the configuration.

C#
public SchedulerBuilder<T> AutoBind(bool value)
Parameters:valuebool

The value for AutoBind

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Binds the scheduler to a list of objects

C#
public SchedulerBuilder<T> BindTo(IEnumerable<T> dataSource)
Parameters:dataSourceIEnumerable<T>

The data source.

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Example:
C#
@model IEnumerable&lt;Task&gt;
@(Html.Kendo().Scheduler&lt;Task&gt;()
.Name("Scheduler")
.BindTo(Model)
.DataSource(dataSource =&gt; dataSource
.Model(m =&gt; m.Id(f =&gt; f.TaskID))
))

If set to false the "current time" marker of the scheduler would not be displayed.

C#
public SchedulerBuilder<T> CurrentTimeMarker(Action<SchedulerCurrentTimeMarkerSettingsBuilder<T>> configurator)
Parameters:configuratorAction<SchedulerCurrentTimeMarkerSettingsBuilder<T>>

The SchedulerCurrentTimeMarkerSettingsBuilder<T> for the currenttimemarker setting.

Returns:

SchedulerBuilder<T>

Returns the current instance of SchedulerBuilder<T> .

If set to false the "current time" marker of the scheduler would not be displayed.

C#
public SchedulerBuilder<T> CurrentTimeMarker(bool enabled)
Parameters:enabledbool

Enables or disables the currenttimemarker option.

Returns:

SchedulerBuilder<T>

Returns the current instance of SchedulerCurrentTimeMarkerSettingsBuilder<T> .

Configures the DataSource options.

C#
public SchedulerBuilder<T> DataSource(Action<SchedulerAjaxDataSourceBuilder<T>> configurator)
Parameters:configuratorAction<SchedulerAjaxDataSourceBuilder<T>>

The DataSource configurator action.

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Example:
C#
@( Html.Kendo().Scheduler&lt;Task&gt;()
.Name("Scheduler")
.DataSource(source =&gt;
{
source.Read(read =&gt;
{
read.Action("Read", "Scheduler");
});
})
)

Configures the DataSource options.

C#
public SchedulerBuilder<T> DataSource(string dataSourceId)
Parameters:dataSourceIdstring

The DataSource name.

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Example:
C#
@( Html.Kendo().Scheduler&lt;Task&gt;()
.Name("Scheduler")
.DataSource("dataSource")
)

The current date of the scheduler. Used to determine the period which is displayed by the widget.

C#
public SchedulerBuilder<T> Date(DateTime value)
Parameters:valueDateTime

The value for Date

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the date header cells.By default the scheduler renders the date using a custom date format - "ddd M/dd". The "ddd" specifier represents the abbreviated name of the week day and will be localized using the current Kendo UI culture. If the developer wants to control the day and month order, then one needs to define a custom template.The fields which can be used in the template are: date - represents the major tick date..

C#
public SchedulerBuilder<T> DateHeaderTemplate(string value)
Parameters:valuestring

The value for DateHeaderTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the date header cells.By default the scheduler renders the date using a custom date format - "ddd M/dd". The "ddd" specifier represents the abbreviated name of the week day and will be localized using the current Kendo UI culture. If the developer wants to control the day and month order, then one needs to define a custom template.The fields which can be used in the template are: date - represents the major tick date..

C#
public SchedulerBuilder<T> DateHeaderTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the dateheadertemplate.

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the date header cells.By default the scheduler renders the date using a custom date format - "ddd M/dd". The "ddd" specifier represents the abbreviated name of the week day and will be localized using the current Kendo UI culture. If the developer wants to control the day and month order, then one needs to define a custom template.The fields which can be used in the template are: date - represents the major tick date..

C#
public SchedulerBuilder<T> DateHeaderTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for DateHeaderTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the date header cells.By default the scheduler renders the date using a custom date format - "ddd M/dd". The "ddd" specifier represents the abbreviated name of the week day and will be localized using the current Kendo UI culture. If the developer wants to control the day and month order, then one needs to define a custom template.The fields which can be used in the template are: date - represents the major tick date..

C#
public SchedulerBuilder<T> DateHeaderTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for DateHeaderTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the date header cells.By default the scheduler renders the date using a custom date format - "ddd M/dd". The "ddd" specifier represents the abbreviated name of the week day and will be localized using the current Kendo UI culture. If the developer wants to control the day and month order, then one needs to define a custom template.The fields which can be used in the template are: date - represents the major tick date..

C#
public SchedulerBuilder<T> DateHeaderTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for DateHeaderTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Sets the editing configuration of the scheduler.

C#
public SchedulerBuilder<T> Editable(Action<SchedulerEditableSettingsBuilder<T>> configurator)
Parameters:configuratorAction<SchedulerEditableSettingsBuilder<T>>

The lambda which configures the editing

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Kendo.Mvc.Examples.Models.Scheduler.Task&gt;()
.Name("scheduler")
.Date(new DateTime(2013, 6, 13))
.Editable(editable =&gt;
{
editable.Confirmation(false);
editable.TemplateId("customEditTemplate");
})
.DataSource(d =&gt; d
.Model(m =&gt; m.Id(f =&gt; f.TaskID))
.Read("Read", "Scheduler")
.Create("Create", "Scheduler")
.Destroy("Destroy", "Scheduler")
.Update("Update", "Scheduler")
)
)

If set to false the user would not be able to create new scheduler events and modify or delete existing ones.

C#
public SchedulerBuilder<T> Editable(bool isEditable)
Parameters:isEditablebool

The isEditable

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Kendo.Mvc.Examples.Models.Scheduler.Task&gt;()
.Name("scheduler")
.Date(new DateTime(2013, 6, 13))
.Editable(false)
.DataSource(d =&gt; d
.Model(m =&gt; m.Id(f =&gt; f.TaskID))
.Read("Read", "Scheduler")
)
)

The end time of the week and day views. The scheduler will display events ending before the endTime.

C#
public SchedulerBuilder<T> EndTime(DateTime value)
Parameters:valueDateTime

The value for EndTime

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The end time of the week and day views. The scheduler will display events ending before the endTime.

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

The hours

minutesint

The minutes

secondsint

The seconds

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Kendo.Mvc.Examples.Models.Scheduler.Screening&gt;()
.Name("scheduler")
.Date(new DateTime(2013, 6, 13))
.EndTime(10,0,0)
.BindTo(Model)
)

Configures the client-side events.

C#
public SchedulerBuilder<T> Events(Action<SchedulerEventBuilder> configurator)
Parameters:configuratorAction<SchedulerEventBuilder>

The client events action.

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Example:
C#
@(Html.Kendo().Scheduler()
.Name("Scheduler")
.Events(events =&gt; events
.Add("onAdd")
)
)

The template used to render the scheduler events.The fields which can be used in the template are: description String - the event description; end Date - the event end date; resources Array - the event resources; start Date - the event start date or title String - the event title.

C#
public SchedulerBuilder<T> EventTemplate(string value)
Parameters:valuestring

The value for EventTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the scheduler events.The fields which can be used in the template are: description String - the event description; end Date - the event end date; resources Array - the event resources; start Date - the event start date or title String - the event title.

C#
public SchedulerBuilder<T> EventTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the eventtemplate.

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the scheduler events.The fields which can be used in the template are: description String - the event description; end Date - the event end date; resources Array - the event resources; start Date - the event start date or title String - the event title.

C#
public SchedulerBuilder<T> EventTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for EventTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the scheduler events.The fields which can be used in the template are: description String - the event description; end Date - the event end date; resources Array - the event resources; start Date - the event start date or title String - the event title.

C#
public SchedulerBuilder<T> EventTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for EventTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the scheduler events.The fields which can be used in the template are: description String - the event description; end Date - the event end date; resources Array - the event resources; start Date - the event start date or title String - the event title.

C#
public SchedulerBuilder<T> EventTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for EventTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

If set to false the footer of the scheduler would not be displayed.

C#
public SchedulerBuilder<T> Footer(Action<SchedulerFooterSettingsBuilder<T>> configurator)
Parameters:configuratorAction<SchedulerFooterSettingsBuilder<T>>

The SchedulerFooterSettingsBuilder<T> for the footer setting.

Returns:

SchedulerBuilder<T>

Returns the current instance of SchedulerBuilder<T> .

If set to false the footer of the scheduler would not be displayed.

C#
public SchedulerBuilder<T> Footer(bool enabled)
Parameters:enabledbool

Enables or disables the footer option.

Returns:

SchedulerBuilder<T>

Returns the current instance of SchedulerFooterSettingsBuilder<T> .

Sets the resources grouping configuration of the scheduler.

C#
public SchedulerBuilder<T> Group(Action<SchedulerGroupBuilder> configuration)
Parameters:configurationAction<SchedulerGroupBuilder>

The lambda which configures the scheduler grouping

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Task&gt;()
.Name("Scheduler")
.Timezone("Etc/UTC")
.Group(group =&gt; group.Resources("Rooms"))
.Resources(resource =&gt;
{
resource.Add(m =&gt; m.RoomID)
.Title("Room")
.Name("Rooms")
.DataTextField("Text")
.DataValueField("Value")
.DataColorField("Color")
.BindTo(new[] {
new { Text = "Meeting Room 101", Value = 1, Color = "#6eb3fa" },
new { Text = "Meeting Room 201", Value = 2, Color = "#f58a8a" }
});
resource.Add(m =&gt; m.Attendees)
.Title("Attendees")
.Multiple(true)
.DataTextField("Text")
.DataValueField("Value")
.DataColorField("Color")
.BindTo(new[] {
new { Text = "Alex", Value = 1, Color = "#f8a398" } ,
new { Text = "Bob", Value = 2, Color = "#51a0ed" } ,
new { Text = "Charlie", Value = 3, Color = "#56ca85" }
});
})
.DataSource(d =&gt; d
.Model(m =&gt;
{
m.Id(f =&gt; f.MeetingID);
m.Field(f =&gt; f.Title).DefaultValue("No title");
m.RecurrenceId(f =&gt; f.RecurrenceID);
})
.Read("Grouping_Horizontal_Read", "Scheduler")
)
)

The template used to render the group headers of scheduler day, week, workWeek and timeline views.The fields which can be used in the template are: text String - the group text; color String - the group color; value - the group value; field String - the field of the scheduler event which contains the resource id; title String - the 'title' option of the resource or name String - the 'name' option of the resource.

C#
public SchedulerBuilder<T> GroupHeaderTemplate(string value)
Parameters:valuestring

The value for GroupHeaderTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the group headers of scheduler day, week, workWeek and timeline views.The fields which can be used in the template are: text String - the group text; color String - the group color; value - the group value; field String - the field of the scheduler event which contains the resource id; title String - the 'title' option of the resource or name String - the 'name' option of the resource.

C#
public SchedulerBuilder<T> GroupHeaderTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the groupheadertemplate.

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the group headers of scheduler day, week, workWeek and timeline views.The fields which can be used in the template are: text String - the group text; color String - the group color; value - the group value; field String - the field of the scheduler event which contains the resource id; title String - the 'title' option of the resource or name String - the 'name' option of the resource.

C#
public SchedulerBuilder<T> GroupHeaderTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for GroupHeaderTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the group headers of scheduler day, week, workWeek and timeline views.The fields which can be used in the template are: text String - the group text; color String - the group color; value - the group value; field String - the field of the scheduler event which contains the resource id; title String - the 'title' option of the resource or name String - the 'name' option of the resource.

C#
public SchedulerBuilder<T> GroupHeaderTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for GroupHeaderTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the group headers of scheduler day, week, workWeek and timeline views.The fields which can be used in the template are: text String - the group text; color String - the group color; value - the group value; field String - the field of the scheduler event which contains the resource id; title String - the 'title' option of the resource or name String - the 'name' option of the resource.

C#
public SchedulerBuilder<T> GroupHeaderTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for GroupHeaderTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The height of the widget. Numeric values are treated as pixels.

C#
public SchedulerBuilder<T> Height(double value)
Parameters:valuedouble

The value for Height

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The number of minutes represented by a major tick.

C#
public SchedulerBuilder<T> MajorTick(int value)
Parameters:valueint

The value for MajorTick

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the major ticks.By default the scheduler renders the time using the current culture time format.The fields which can be used in the template are: date - represents the major tick date..

C#
public SchedulerBuilder<T> MajorTimeHeaderTemplate(string value)
Parameters:valuestring

The value for MajorTimeHeaderTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the major ticks.By default the scheduler renders the time using the current culture time format.The fields which can be used in the template are: date - represents the major tick date..

C#
public SchedulerBuilder<T> MajorTimeHeaderTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the majortimeheadertemplate.

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the major ticks.By default the scheduler renders the time using the current culture time format.The fields which can be used in the template are: date - represents the major tick date..

C#
public SchedulerBuilder<T> MajorTimeHeaderTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for MajorTimeHeaderTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the major ticks.By default the scheduler renders the time using the current culture time format.The fields which can be used in the template are: date - represents the major tick date..

C#
public SchedulerBuilder<T> MajorTimeHeaderTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for MajorTimeHeaderTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the major ticks.By default the scheduler renders the time using the current culture time format.The fields which can be used in the template are: date - represents the major tick date..

C#
public SchedulerBuilder<T> MajorTimeHeaderTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for MajorTimeHeaderTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Constraints the maximum date which can be selected via the scheduler navigation.

C#
public SchedulerBuilder<T> Max(DateTime value)
Parameters:valueDateTime

The value for Max

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The configuration of the scheduler messages. Use this option to customize or localize the scheduler messages.

C#
public SchedulerBuilder<T> Messages(Action<SchedulerMessagesSettingsBuilder<T>> configurator)
Parameters:configuratorAction<SchedulerMessagesSettingsBuilder<T>>

The SchedulerMessagesSettingsBuilder<T> for the messages setting.

Returns:

SchedulerBuilder<T>

Returns the current instance of SchedulerBuilder<T> .

Constraints the minimum date which can be selected via the scheduler navigation.

C#
public SchedulerBuilder<T> Min(DateTime value)
Parameters:valueDateTime

The value for Min

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The number of time slots to display per major tick.

C#
public SchedulerBuilder<T> MinorTickCount(int value)
Parameters:valueint

The value for MinorTickCount

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the minor ticks.By default the scheduler renders a " ".The fields which can be used in the template are: date - represents the major tick date..

C#
public SchedulerBuilder<T> MinorTimeHeaderTemplate(string value)
Parameters:valuestring

The value for MinorTimeHeaderTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the minor ticks.By default the scheduler renders a " ".The fields which can be used in the template are: date - represents the major tick date..

C#
public SchedulerBuilder<T> MinorTimeHeaderTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the minortimeheadertemplate.

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the minor ticks.By default the scheduler renders a " ".The fields which can be used in the template are: date - represents the major tick date..

C#
public SchedulerBuilder<T> MinorTimeHeaderTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for MinorTimeHeaderTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the minor ticks.By default the scheduler renders a " ".The fields which can be used in the template are: date - represents the major tick date..

C#
public SchedulerBuilder<T> MinorTimeHeaderTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for MinorTimeHeaderTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the minor ticks.By default the scheduler renders a " ".The fields which can be used in the template are: date - represents the major tick date..

C#
public SchedulerBuilder<T> MinorTimeHeaderTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for MinorTimeHeaderTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Enables the adaptive rendering when viewed on mobile browser

C#
public SchedulerBuilder<T> Mobile()
Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Kendo.Mvc.Examples.Models.Scheduler.Screening&gt;()
.Name("scheduler")
.Date(new DateTime(2013, 6, 13))
.Mobile()
)

Defines the mobile modes supported by Kendo UI Scheduler for ASP.NET MVC

C#
public SchedulerBuilder<T> Mobile(MobileMode value)
Parameters:valueMobileMode

The value for Mobile

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The settings for the ongoing events highlight. The highlight is disabled by default. If you need to turn it on, set this option to true, or use a configuration object with its nested options.

C#
public SchedulerBuilder<T> OngoingEvents(Action<SchedulerOngoingEventsSettingsBuilder<T>> configurator)
Parameters:configuratorAction<SchedulerOngoingEventsSettingsBuilder<T>>

The SchedulerOngoingEventsSettingsBuilder<T> for the ongoingevents setting.

Returns:

SchedulerBuilder<T>

Returns the current instance of SchedulerBuilder<T> .

The settings for the ongoing events highlight. The highlight is disabled by default. If you need to turn it on, set this option to true, or use a configuration object with its nested options.

C#
public SchedulerBuilder<T> OngoingEvents(bool enabled)
Parameters:enabledbool

Enables or disables the ongoingevents option.

Returns:

SchedulerBuilder<T>

Returns the current instance of SchedulerOngoingEventsSettingsBuilder<T> .

Configures the Kendo UI Scheduler PDF export settings.

C#
public SchedulerBuilder<T> Pdf(Action<SchedulerPdfSettingsBuilder<T>> configurator)
Parameters:configuratorAction<SchedulerPdfSettingsBuilder<T>>

The SchedulerPdfSettingsBuilder<T> for the pdf setting.

Returns:

SchedulerBuilder<T>

Returns the current instance of SchedulerBuilder<T> .

The template used to render the recurrence trigger summary in the desktop event editor.The template data contains the following fields: rule—The parsed recurrence rule object. or recurrenceRule—The serialized recurrence rule string..

C#
public SchedulerBuilder<T> RecurrenceRuleLabelTemplate(string value)
Parameters:valuestring

The value for RecurrenceRuleLabelTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the recurrence trigger summary in the desktop event editor.The template data contains the following fields: rule—The parsed recurrence rule object. or recurrenceRule—The serialized recurrence rule string..

C#
public SchedulerBuilder<T> RecurrenceRuleLabelTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the recurrencerulelabeltemplate.

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the recurrence trigger summary in the desktop event editor.The template data contains the following fields: rule—The parsed recurrence rule object. or recurrenceRule—The serialized recurrence rule string..

C#
public SchedulerBuilder<T> RecurrenceRuleLabelTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for RecurrenceRuleLabelTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the recurrence trigger summary in the desktop event editor.The template data contains the following fields: rule—The parsed recurrence rule object. or recurrenceRule—The serialized recurrence rule string..

C#
public SchedulerBuilder<T> RecurrenceRuleLabelTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for RecurrenceRuleLabelTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The template used to render the recurrence trigger summary in the desktop event editor.The template data contains the following fields: rule—The parsed recurrence rule object. or recurrenceRule—The serialized recurrence rule string..

C#
public SchedulerBuilder<T> RecurrenceRuleLabelTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for RecurrenceRuleLabelTemplate

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Sets the resources configuration of the scheduler.

C#
public SchedulerBuilder<T> Resources(Action<SchedulerResourceFactory<T>> addResourceAction)
Parameters:addResourceActionAction<SchedulerResourceFactory<T>>

The lambda which configures the scheduler resources

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Task&gt;()
.Name("Scheduler")
.Resources(resource =&gt;
{
resource.Add(m =&gt; m.TaskID)
.Title("Color")
.Multiple(true)
.DataTextField("Text")
.DataValueField("Value")
.DataSource(d =&gt; d.Read("Attendies", "Scheduler"));
})
.DataSource(dataSource =&gt; dataSource
.Model(m =&gt; m.Id(f =&gt; f.TaskID))
))

If set to true the user would be able to select scheduler cells and events. By default selection is disabled.

C#
public SchedulerBuilder<T> Selectable()
Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

If set to true the user would be able to select scheduler cells and events. By default selection is disabled.

C#
public SchedulerBuilder<T> Selectable(bool value)
Parameters:valuebool

The value for Selectable

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

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

C#
public SchedulerBuilder<T> ShowWorkHours()
Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

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

C#
public SchedulerBuilder<T> ShowWorkHours(bool value)
Parameters:valuebool

The value for ShowWorkHours

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

If set to true the scheduler will snap events to the nearest slot during dragging (resizing or moving). Set it to false to allow free moving and resizing of events.

C#
public SchedulerBuilder<T> Snap(bool value)
Parameters:valuebool

The value for Snap

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The start time of the week and day views. The scheduler will display events starting after the startTime.

C#
public SchedulerBuilder<T> StartTime(DateTime value)
Parameters:valueDateTime

The value for StartTime

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The start time of the week and day views. The scheduler will display events starting after the startTime.

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

The hours

minutesint

The minutes

secondsint

The seconds

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Kendo.Mvc.Examples.Models.Scheduler.Screening&gt;()
.Name("scheduler")
.Date(new DateTime(2013, 6, 13))
.StartTime(10, 0, 0)
.BindTo(Model)
)

The timezone which the scheduler will use to display the scheduler appointment dates. By default the current system timezone is used. This is an acceptable default when the scheduler widget is bound to local array of events. It is advisable to specify a timezone if the scheduler is bound to a remote service. That way all users would see the same dates and times no matter their configured system timezone.The complete list of the supported timezones is available in the List of IANA time zones Wikipedia page.

C#
public SchedulerBuilder<T> Timezone(string value)
Parameters:valuestring

The value for Timezone

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Adds PDF command to the toolbar.

C#
public SchedulerBuilder<T> Toolbar(Action<SchedulerToolbarFactory<T>> addToolbarAction)
Parameters:addToolbarActionAction<SchedulerToolbarFactory<T>>Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Task&gt;()
.Name("scheduler")
.Toolbar(toolbar =&gt; toolbar.Pdf())
.Pdf(pdf =&gt; pdf.FileName("SchedulerExport.pdf"))
.DataSource(dataSource =&gt;
// configure the data source
dataSource
.Ajax()
.Read("Read", "Scheduler")
)
)

Sets the views configuration of the scheduler.

C#
public SchedulerBuilder<T> Views(Action<SchedulerViewFactory<T>> addViewAction)
Parameters:addViewActionAction<SchedulerViewFactory<T>>

The lambda which configures the scheduler views

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Kendo.Mvc.Examples.Models.Scheduler.Task&gt;()
.Name("scheduler")
.Date(new DateTime(2013, 6, 13))
.Views(views =&gt; {
views.DayView();
views.AgendaView();
})
.BindTo(Model)
)

The width of the widget. Numeric values are treated as pixels.

C#
public SchedulerBuilder<T> Width(double value)
Parameters:valuedouble

The value for Width

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Sets the end of the work day when the "Show business hours" button is clicked.

C#
public SchedulerBuilder<T> WorkDayEnd(DateTime value)
Parameters:valueDateTime

The value for WorkDayEnd

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Sets the end of the work day when the "Show business hours" button is clicked.

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

The hours

minutesint

The minutes

secondsint

The seconds

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Kendo.Mvc.Examples.Models.Scheduler.Screening&gt;()
.Name("scheduler")
.Date(new DateTime(2013, 6, 13))
.WorkDayEnd(16,0,0)
.BindTo(Model)
)

Sets the working days (index based).

C#
public SchedulerBuilder<T> WorkDays(int[] workDays)
Parameters:workDaysint[]

The indices of the days of the week

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Kendo.Mvc.Examples.Models.Scheduler.Screening&gt;()
.Name("scheduler")
.Date(new DateTime(2013, 6, 13))
.WorkDays(new int[] { 1,3,4,5 })
.BindTo(Model)
)

Sets the start of the work day when the "Show business hours" button is clicked.

C#
public SchedulerBuilder<T> WorkDayStart(DateTime value)
Parameters:valueDateTime

The value for WorkDayStart

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Sets the start of the work day when the "Show business hours" button is clicked.

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

The hours

minutesint

The minutes

secondsint

The seconds

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

Example:
C#
@(Html.Kendo().Scheduler&lt;Kendo.Mvc.Examples.Models.Scheduler.Screening&gt;()
.Name("scheduler")
.Date(new DateTime(2013, 6, 13))
.WorkDayStart(10, 0, 0)
.BindTo(Model)
)

The end of working week (index based).

C#
public SchedulerBuilder<T> WorkWeekEnd(int value)
Parameters:valueint

The value for WorkWeekEnd

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.

The start of working week (index based).

C#
public SchedulerBuilder<T> WorkWeekStart(int value)
Parameters:valueint

The value for WorkWeekStart

Returns:

SchedulerBuilder<T>

Returns the current SchedulerBuilder<T> instance.