Scheduler<T>
Kendo UI Scheduler component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class Scheduler<T> : WidgetBase, IHtmlAttributesContainer, IScheduler<T>, IScheduler where T : class, ISchedulerEvent
Inheritance: objectWidgetBaseScheduler<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the Scheduler<T> class.
Properties
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.
public string AllDayEventTemplate { get; set; }
Implements:
The handler that returns the template used for AllDayEventTemplate
public string AllDayEventTemplateHandler { get; set; }
The id of the script element used for AllDayEventTemplate
public string AllDayEventTemplateId { get; set; }
Implements:
If set to true the scheduler will display a slot for "all day" events.
public bool? AllDaySlot { get; set; }
Implements:
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.
public bool? AutoBind { get; set; }
If set to false the "current time" marker of the scheduler would not be displayed.
public SchedulerCurrentTimeMarkerSettings<T> CurrentTimeMarker { get; }
Gets or sets the CustomToolbar.
public SchedulerCustomToolbarSettings CustomToolbar { get; }
Gets or sets the DataSource.
public DataSource DataSource { get; }
Implements:
Gets or sets the DataSourceId.
public string DataSourceId { get; set; }
The current date of the scheduler. Used to determine the period which is displayed by the widget.
public DateTime? Date { get; set; }
Implements:
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..
public string DateHeaderTemplate { get; set; }
Implements:
The handler that returns the template used for DateHeaderTemplate
public string DateHeaderTemplateHandler { get; set; }
The id of the script element used for DateHeaderTemplate
public string DateHeaderTemplateId { get; set; }
Implements:
Editable member.
public SchedulerEditableSettings<T> Editable { get; set; }
The end time of the week and day views. The scheduler will display events ending before the endTime.
public DateTime? EndTime { get; set; }
Implements:
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.
public string EventTemplate { get; set; }
Implements:
The handler that returns the template used for EventTemplate
public string EventTemplateHandler { get; set; }
The id of the script element used for EventTemplate
public string EventTemplateId { get; set; }
Implements:
If set to false the footer of the scheduler would not be displayed.
public SchedulerFooterSettings<T> Footer { get; }
Gets or sets the Group.
public SchedulerGroupSettings Group { get; set; }
Implements:
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.
public string GroupHeaderTemplate { get; set; }
The handler that returns the template used for GroupHeaderTemplate
public string GroupHeaderTemplateHandler { get; set; }
The id of the script element used for GroupHeaderTemplate
public string GroupHeaderTemplateId { get; set; }
The height of the widget. Numeric values are treated as pixels.
public double? Height { get; set; }
Implements:
The number of minutes represented by a major tick.
public int? MajorTick { get; set; }
Implements:
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..
public string MajorTimeHeaderTemplate { get; set; }
Implements:
The handler that returns the template used for MajorTimeHeaderTemplate
public string MajorTimeHeaderTemplateHandler { get; set; }
The id of the script element used for MajorTimeHeaderTemplate
public string MajorTimeHeaderTemplateId { get; set; }
Implements:
Constraints the maximum date which can be selected via the scheduler navigation.
public DateTime? Max { get; set; }
The configuration of the scheduler messages. Use this option to customize or localize the scheduler messages.
public SchedulerMessagesSettings<T> Messages { get; }
Implements:
Constraints the minimum date which can be selected via the scheduler navigation.
public DateTime? Min { get; set; }
The number of time slots to display per major tick.
public int? MinorTickCount { get; set; }
Implements:
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..
public string MinorTimeHeaderTemplate { get; set; }
Implements:
The handler that returns the template used for MinorTimeHeaderTemplate
public string MinorTimeHeaderTemplateHandler { get; set; }
The id of the script element used for MinorTimeHeaderTemplate
public string MinorTimeHeaderTemplateId { get; set; }
Implements:
Defines the mobile modes supported by Kendo UI Scheduler for ASP.NET MVC
public MobileMode? Mobile { get; set; }
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.
public SchedulerOngoingEventsSettings<T> OngoingEvents { get; }
Configures the Kendo UI Scheduler PDF export settings.
public SchedulerPdfSettings<T> Pdf { get; }
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..
public string RecurrenceRuleLabelTemplate { get; set; }
The handler that returns the template used for RecurrenceRuleLabelTemplate
public string RecurrenceRuleLabelTemplateHandler { get; set; }
The id of the script element used for RecurrenceRuleLabelTemplate
public string RecurrenceRuleLabelTemplateId { get; set; }
Resources member.
public IList<SchedulerResource<T>> Resources { get; }
Implements:
If set to true the user would be able to select scheduler cells and events. By default selection is disabled.
public bool? Selectable { get; set; }
Implements:
If set to true the view will be initially shown in business hours mode. By default view is displayed in full day mode.
public bool? ShowWorkHours { get; set; }
Implements:
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.
public bool? Snap { get; set; }
Implements:
The start time of the week and day views. The scheduler will display events starting after the startTime.
public DateTime? StartTime { get; set; }
Implements:
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.
public string Timezone { get; set; }
Implements:
ToolbarCommands member.
public IList<SchedulerToolbarCommand> ToolbarCommands { get; }
Implements:
Views member.
public IList<SchedulerViewBase> Views { get; }
Implements:
The width of the widget. Numeric values are treated as pixels.
public double? Width { get; set; }
Implements:
Sets the end of the work day when the "Show business hours" button is clicked.
public DateTime? WorkDayEnd { get; set; }
Implements:
Sets the start of the work day when the "Show business hours" button is clicked.
public DateTime? WorkDayStart { get; set; }
Implements:
The end of working week (index based).
public int? WorkWeekEnd { get; set; }
Implements:
The start of working week (index based).
public int? WorkWeekStart { get; set; }
Implements:
Methods
Serializes the component settings to a dictionary.
public override IDictionary<string, object> Serialize()
A dictionary of settings.
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML content.
protected override void WriteHtml(TextWriter writer)
The text writer.
Overrides:
WriteInitializationScript method.
public override void WriteInitializationScript(TextWriter writer)
Overrides: