RadScheduler
Using the Telerik RadScheduler control, you can build powerful ASP.NET applications to allow users to create and manage tasks. RadScheduler displays and edits scheduled appointments that are stored in a separate data source. A variety of data binding options allows you to work with data sources that are as simple or as powerful as you want.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
[EmbeddedSkin("Scheduler", typeof(RadScheduler))]
[EmbeddedSkin("Scheduler", "Default", typeof(RadScheduler))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Classic, typeof(RadScheduler))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Lightweight, typeof(RadScheduler))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Mobile, typeof(RadScheduler))]
[RequiredCss("Telerik.Web.UI.Skins.Common.MaterialRipple.css", RenderMode.Lightweight, typeof(RadButton))]
[RequiredCss("Telerik.Web.UI.Skins.Common.MaterialRipple.css", RenderMode.Mobile, typeof(RadButton))]
[RequiredScript(typeof(jQueryPlugins))]
[RequiredScript(typeof(TouchScrollExtender))]
[RequiredScript(typeof(ModalExtender))]
[RequiredScript(typeof(SchedulerDateTime))]
[RequiredScript(typeof(MaterialRipple))]
[ClientScriptResource("Telerik.Web.UI.RadScheduler", "Telerik.Web.UI.Scheduler.RadSchedulerScripts.js")]
[TelerikToolboxCategory("Calendar, Scheduler and Gantt")]
[ToolboxBitmap(typeof(RadScheduler), "Toolbox.Icons.Scheduler.png")]
public class RadScheduler : RadDataBoundControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IScriptControl, IControlResolver, IPostBackDataHandler, ISkinnableControl, IControl, IFeatureGroup, IPostBackEventHandler, INamingContainer, IAppointmentFactory, ICallbackEventHandler
Inheritance: objectControlWebControlBaseDataBoundControlDataBoundControlRadDataBoundControlRadScheduler...
Implements:
Inherited Members
Constructors
public RadScheduler()
Properties
Gets or sets the advanced edit template.
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(SchedulerFormContainer), BindingDirection.TwoWay)]
public ITemplate AdvancedEditTemplate { get; set; }
The advanced edit template.
Gets the Advanced form settings.
[PersistenceMode(PersistenceMode.InnerProperty)]
public AdvancedFormSettings AdvancedForm { get; }
The Advanced form settings.
Gets or sets the advanced insert template.
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(SchedulerFormContainer), BindingDirection.TwoWay)]
public ITemplate AdvancedInsertTemplate { get; set; }
The advanced insert template.
[PersistenceMode(PersistenceMode.InnerProperty)]
public AgendaViewSettings AgendaView { get; }
The agenda view.
Gets or sets a value indicating whether appointments deleting is allowed.
[ClientControlProperty]
[ClientPropertyName("allowDelete")]
public bool AllowDelete { get; set; }
true if appointments deleting is allowed; otherwise, false.
Gets or sets a value indicating whether appointments editing is allowed.
[ClientControlProperty]
[ClientPropertyName("allowEdit")]
public bool AllowEdit { get; set; }
true if appointments editing is allowed; otherwise, false.
Gets or sets a value indicating whether appointments inserting is allowed.
[ClientControlProperty]
[ClientPropertyName("allowInsert")]
public bool AllowInsert { get; set; }
true if appointments inserting is allowed; otherwise, false.
Gets or sets the comparer instance used to determine the appointment ordering within the same slot. By default, appointments are ordered by start time and duration.
[Browsable(false)]
public IComparer<Appointment> AppointmentComparer { get; set; }
Gets a collection of RadSchedulerContextMenu objects that represent the Appointment context menus of the RadScheduler control.
[PersistenceMode(PersistenceMode.InnerProperty)]
public RadSchedulerContextMenuCollection AppointmentContextMenus { get; }
A RadSchedulerContextMenuCollection that contains all the Appointment context menus of the RadScheduler control.
By default, if the AppointmentContextMenus collection contains RadSchedulerContextMenus, the first one is displayed on the right-click of each Appointment. To specify a different context menu for a Appointment, use its ContextMenuID property.
Gets the appointment context menu settings.
[PersistenceMode(PersistenceMode.InnerProperty)]
public ContextMenuSettings AppointmentContextMenuSettings { get; }
The appointment context menu settings.
A factory for appointment instances.
[Browsable(false)]
public IAppointmentFactory AppointmentFactory { get; set; }
The default factory returns instances of the Appointment class.
RadScheduler needs to create appointment instances in various stages of the control life cycle. You can use custom appointment classes by either implementing an IAppointmentFactory or by overriding the CreateAppointment() method.
Gets a collection of Appointment objects that represent individual appointments in the RadScheduler control.
[Browsable(false)]
public AppointmentCollection Appointments { get; }
A collection of the currently loaded Appointment objects.
Defines the styling mode for appointments.
[ClientControlProperty]
public AppointmentStyleMode AppointmentStyleMode { get; set; }
Auto - Appointments with set background or border color are rendered using the Simple style - without rounded corners or gradiented background. All others are rendered using their default style - with rounded corners and gradiented background.
Simple - Appointments are rendered using the simple style - without rounded corners or gradiented background.
Default - Appointments rendered with rounded corners and gradiented background. Custom background and border colors are supported. Gradiented backgrounds for custom colors are not available in IE6.
Gets or sets the appointment template.
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(SchedulerAppointmentContainer))]
public ITemplate AppointmentTemplate { get; set; }
The appointment template.
Gets or sets the width of each content column.
public Unit ColumnWidth { get; set; }
The width of each content column
The CssClass property will now be used instead of the former Skin and will be modified in AddAttributesToRender()
protected override string CssClassFormatString { get; }
Overrides:
Gets or sets the selected culture. Localization strings will be loaded based on this value.
public CultureInfo Culture { get; set; }
The culture.
Specifies the database fields (column names) which should be loaded as appointment attributes.
[TypeConverter(typeof(StringArrayConverter))]
[PersistenceMode(PersistenceMode.Attribute)]
public string[] CustomAttributeNames { get; set; }
An array of strings representing the names of the database fields which should be populated as appointment custom attributes. By default RadScheduler does not populate any database fields as custom attributes.
You should use the CustomAttributeNames property when you want RadScheduler to populate the Attributes collection of the appointments.
Gets or sets the description field for appointments in the data source specified by the DataSourceID property.
public string DataDescriptionField { get; set; }
The name of the description field for appointments in the data source specified by DataSourceID.
This property is optional. If it's not specified the description field will not be visible in the insert/edit forms.
Setting this property to a non-empty string will enable the Description field regardless of the value of EnableDescriptionField.
Gets or sets the end field for appointments in the data source specified by the DataSourceID property.
public string DataEndField { get; set; }
The name of the end field for appointments in the data source specified by DataSourceID.
Gets or sets the key field for appointments in the data source specified by the DataSourceID property.
public string DataKeyField { get; set; }
The name of the key field for appointments in the data source specified by DataSourceID.
Gets or sets the recurrence rule field for appointments in the data source specified by the DataSourceID property.
public string DataRecurrenceField { get; set; }
The name of the recurrene rule field for appointments in the data source specified by DataSourceID.
Gets or sets the recurrence parent key field for appointments in the data source specified by the DataSourceID property.
public string DataRecurrenceParentKeyField { get; set; }
The name of the recurrence parent key field for appointments in the data source specified by DataSourceID.
Gets or sets the reminder field for appointments in the data source specified by the DataSourceID property.
public string DataReminderField { get; set; }
The name of the reminder field for appointments in the data source specified by DataSourceID.
This property is optional. If it's not specified the reminder drop-down will not be visible in the insert/edit forms.
Setting this property to a non-empty string will enable the reminder drop-down regardless of the value of Enabled.
Overridden. Gets or sets the ID property of the data source control that the RadScheduler should use to retrieve its data source.
public override string DataSourceID { get; set; }
Overrides:
Gets or sets the start field for appointments in the data source specified by the DataSourceID property.
public string DataStartField { get; set; }
The name of the start field for appointments in the data source specified by DataSourceID.
Gets or sets the subject field for appointments in the data source specified by the DataSourceID property.
public string DataSubjectField { get; set; }
The name of the subject field for appointments in the data source specified by DataSourceID.
Gets or sets the time zone field for appointments in the data source specified by the DataSourceID property.
public string DataTimeZoneIdField { get; set; }
The name of the time zone field for appointments in the data source specified by DataSourceID.
Gets or sets the time used to denote the end of the day. If you need to set DayStartTime="00:00:00" and DayEndTime="23:59:59", it is recommended to set ShowFullTime="true" instead.
public TimeSpan DayEndTime { get; set; }
The time used to denote the end of the day.
This property is ignored in MonthView mode. If you need to set DayStartTime="00:00:00" and DayEndTime="23:59:59", it is recommended to set ShowFullTime="true" instead.
Gets or sets the time used to denote the start of the day. If you need to set DayStartTime="00:00:00" and DayEndTime="23:59:59", it is recommended to set ShowFullTime="true" instead.
public TimeSpan DayStartTime { get; set; }
The time used to denote the start of the day.
This property is ignored in MonthView mode. If you need to set DayStartTime="00:00:00" and DayEndTime="23:59:59", it is recommended to set ShowFullTime="true" instead.
Gets the Day view settings.
[PersistenceMode(PersistenceMode.InnerProperty)]
public DayViewSettings DayView { get; }
The day view.
Gets or sets a value indicating whether a delete confirmation dialog should be displayed when the user clicks the "delete" button of an appointment.
[ClientControlProperty]
[ClientPropertyName("displayDeleteConfirmation")]
public bool DisplayDeleteConfirmation { get; set; }
true if the confirmation dialog should be displayed;
Gets or sets a value indicating whether a confirmation dialog should be displayed when the user moves a recurring appointment.
[ClientControlProperty]
[ClientPropertyName("displayRecurrenceActionDialogOnMove")]
public bool DisplayRecurrenceActionDialogOnMove { get; set; }
true if the confirmation dialog should be displayed;
Gets or sets the edit form date format string.
[Obsolete("Obsoleted. Please, use AdvancedForm-DateFormat instead.")]
public string EditFormDateFormat { get; set; }
The edit form date format string.
Gets or sets the edit form time format string.
[Obsolete("Obsoleted. Please, use AdvancedForm-TimeFormat instead.")]
public string EditFormTimeFormat { get; set; }
The edit form time format string.
Gets a value indicating whether the recurring series are being edited at the moment, as opposed to a single appointment of the series.
[Browsable(false)]
public bool EditingRecurringSeries { get; }
true if the recurring series are being edited at the moment; false otherwise.
This property is also used to indicate the target of the delete and move operations.
Gets or sets a value indicating whether the user can use the advanced insert/edit form.
[Obsolete("Obsoleted. Please, use AdvancedForm-Enabled instead.")]
public bool EnableAdvancedForm { get; set; }
true if the user should be able to use the advanced insert/edit form; false otherwise. The default value is true.
Gets or sets a value that indicates whether the attribute editing in the advanced form is enabled.
[Obsolete("Obsoleted. Please, use AdvancedForm-EnableCustomAttributeEditing instead.")]
public bool EnableCustomAttributeEditing { get; set; }
A value that indicates whether the attribute editing in the advanced form is enabled.
Gets or sets a value indicating whether to enable the date picker for quick navigation.
public bool EnableDatePicker { get; set; }
true if the date picker for quick navigation is enabled; otherwise, false.
Gets or sets a value indicating whether the user can view and edit the description field of appointments.
[ClientControlProperty]
[ClientPropertyName("_enableDescriptionField")]
public bool EnableDescriptionField { get; set; }
true if the user is allowed to view and edit the description field of appointments; false otherwise. The default value is false.
Gets or sets a value indicating whether the appointment start and end time should be rendered exactly.
public bool EnableExactTimeRendering { get; set; }
true if the appointment start and end time should be rendered exactly;
false if the appointment start and end time should be snapped to the row boundaries.
The default value is false.
Currently, exact time rendering is supported only in Day, Week and MultiDay views.
Gets or sets a value indicating whether the user can create and edit recurring appointments.
public bool EnableRecurrenceSupport { get; set; }
true if the user is allowed to create and edit recurring appointments; false otherwise. The default value is true.
Gets or sets a value that indicates whether the resource editing in the advanced form is enabled.
[Obsolete("Obsoleted. Please, use AdvancedForm-EnableResourceEditing instead.")]
public bool EnableResourceEditing { get; set; }
A value that indicates whether the resource editing in the advanced form is enabled.
Gets a reference to the SchedulerExportSettings object that allows you to set the properties of the grouping operation in a Telerik RadScheduler control.
[PersistenceMode(PersistenceMode.InnerProperty)]
public SchedulerExportSettings ExportSettings { get; }
A reference to the SchedulerExportSettings that allows you to set the properties of the grouping operation in a Telerik RadScheduler control.
Use the ExportSettings property to control the settings of the grouping operations in a Telerik RadScheduler control. This property is read-only; however, you can set the properties of the SchedulerGroupingSettings object it returns. The properties can be set declaratively using one of the following methods:
- Place an attribute in the opening tag of the Telerik RadScheduler control in the form Property-Subproperty, where Subproperty is a property of the SchedulerExportSettings object (for example, GroupingSettings-ExpandTooltip).
- Nest a <GroupingSettings> element between the opening and closing tags of the Telerik RadScheduler control.
The properties can also be set programmatically in the form Property.Subproperty (for example, GroupingSettings.ExpandTooltip). Common settings usually include the tool tips for the sorting controls.
Gets or sets the first day of the week.
[ClientControlProperty]
public DayOfWeek FirstDayOfWeek { get; set; }
Used this property to specify the first day rendered in week view.
Gets the name of the resource to group by. Can also be in the format "Date,[Resource Name]" when grouping by date.
[ClientControlProperty]
[ClientPropertyName("groupBy")]
public string GroupBy { get; set; }
The resource to group by.
Gets or sets the resource grouping direction of the RadScheduler.
public GroupingDirection GroupingDirection { get; set; }
protected bool HasCustomProvider { get; }
protected bool HasDataSource { get; }
protected bool HasDescriptionField { get; }
Gets or sets the height.
public override Unit Height { get; set; }
The height.
Overrides:
Gets or sets the hours panel time format string.
[ClientControlProperty]
public string HoursPanelTimeFormat { get; set; }
The hours panel time format string.
protected bool InAdvancedMode { get; }
Gets or sets the inline edit template.
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(SchedulerFormContainer), BindingDirection.TwoWay)]
public ITemplate InlineEditTemplate { get; set; }
The inline edit template.
Gets or sets the inline insert template.
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(SchedulerFormContainer), BindingDirection.TwoWay)]
public ITemplate InlineInsertTemplate { get; set; }
The inline insert template.
protected override bool IsBoundUsingOData { get; }
Overrides:
Gets or sets the last day of the week.
[ClientControlProperty]
public DayOfWeek LastDayOfWeek { get; set; }
This property is applied in week and month view.
Gets the localization.
[PersistenceMode(PersistenceMode.InnerProperty)]
public SchedulerStrings Localization { get; }
The localization.
Gets or sets a value indicating where RadScheduler will look for its .resx localization files.
public string LocalizationPath { get; set; }
The localization path.
Gets or sets the maximum recurrence candidates limit.
public int MaximumRecurrenceCandidates { get; set; }
The maximum recurrence candidates limit.
This limit is used to prevent lockups when evaluating long recurring series. The default value should not be changed under normal conditions.
Gets or sets the minimum height of the inline insert/edit template.
[ClientControlProperty]
[ClientPropertyName("minimumInlineFormHeight")]
public int MinimumInlineFormHeight { get; set; }
The minimum height of the inline insert/edit template.
The height is applied to the textbox inside the default inline template. It will be ignored when using custom templates for the inline form.
Gets or sets the minimum width of the inline insert/edit template.
[ClientControlProperty]
[ClientPropertyName("minimumInlineFormWidth")]
public int MinimumInlineFormWidth { get; set; }
The minimum width of the inline insert/edit template.
Gets or sets the number of minuties which a single row represents
[ClientControlProperty]
public int MinutesPerRow { get; set; }
An integer specifying how many minutes a row represents. The default value is 30.
Gets the Month view settings.
[PersistenceMode(PersistenceMode.InnerProperty)]
public MonthViewSettings MonthView { get; }
The month view.
Gets the Multi-day view settings.
[PersistenceMode(PersistenceMode.InnerProperty)]
public MultiDayViewSettings MultiDayView { get; }
The multi day view.
Gets or sets the number of rows that are hovered when the mouse is over the appointment area.
[ClientControlProperty]
public int NumberOfHoveredRows { get; set; }
An integer specifying the number of rows that are hovered when the mouse is over the appointment area. The default value is 2. This value also determines the initial length of inserted appointments.
Gets or sets the ODataDataSource used for data binding.
public override string ODataDataSourceID { get; set; }
Overrides:
Gets or sets the OnClientAppointmentClick.
[ClientControlEvent]
[ClientPropertyName("appointmentClick")]
public string OnClientAppointmentClick { get; set; }
The OnClientAppointmentClick.
Gets or sets a value indicating the client-side event handler that is called when an appointment has been right-clicked.
[ClientControlEvent]
[ClientPropertyName("appointmentContextMenu")]
public string OnClientAppointmentContextMenu { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientAppointmentContextMenu client-side event handler is called when an appointment has been right-clicked. Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with two properties:
- get_appointment(), the instance of the appointment.
- get_domEvent(), the original DOM event.
This event cannot be cancelled.
Gets or sets a value indicating the client-side event handler that is called when an apointment context menu item is clicked, after RadScheduler has processed the event.
[ClientControlEvent]
[ClientPropertyName("appointmentContextMenuItemClicked")]
public string OnClientAppointmentContextMenuItemClicked { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientAppointmentContextMenuItemClicking client-side event handler is called when an apointment context menu item is clicked, after RadScheduler has processed the event.
Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with two properties:
- get_appointment(), the instance of the appointment.
- get_item(), the clicked menu item.
This event cannot be cancelled.
Gets or sets a value indicating the client-side event handler that is called when an apointment context menu item is clicked, before RadScheduler processes the click event.
[ClientControlEvent]
[ClientPropertyName("appointmentContextMenuItemClicking")]
public string OnClientAppointmentContextMenuItemClicking { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientAppointmentContextMenuItemClicking client-side event handler is called when an apointment context menu item is clicked, before RadScheduler processes the click event.
Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with three properties:
- get_appointment(), the instance of the appointment.
- get_item(), the clicked menu item.
- set_cancel(), used to cancel the event.
This event can be cancelled. Cancelling it will prevent any further processing of the command.
Gets or sets a value indicating the client-side event handler that is called when an appointment is received from the Web Service and hase been rendered.
[ClientControlEvent]
[ClientPropertyName("appointmentCreated")]
public string OnClientAppointmentCreated { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientAppointmentCreated client-side event handler is called when an appointment is received and has been rendered.
In the case of server-side binding, the event will not be raised.
When client-side binding is used, the event will be raised after the appointments are retrieved from the data service. The event will be raised for each appointment that has been retrieved from the web service.
Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with one property:
- get_appointment(), the appointment that has been rendered.
This event cannot be cancelled.
Gets or sets a value indicating the client-side event handler that is called when an appointment is received from the Web Service and is about to be rendered.
[ClientControlEvent]
[ClientPropertyName("appointmentDataBound")]
public string OnClientAppointmentDataBound { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientAppointmentDataBound client-side event handler is called when an appointment is received and is about to be rendered.
In the case of server-side binding, the event will not be raised.
When client-side binding is used, the event will be raised after the appointments are retrieved from the data service. The event will be raised for each appointment that has been retrieved from the web service.
Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with two properties:
- get_appointment(), the instance of the appointment;
- get_data(), the original data object retrieved from the web service.
This event cannot be cancelled.
Gets or sets the OnClientAppointmentDeleting.
[ClientControlEvent]
[ClientPropertyName("appointmentDeleting")]
public string OnClientAppointmentDeleting { get; set; }
The OnClientAppointmentDeleting.
Gets or sets the OnClientAppointmentInserting.
[ClientControlEvent]
[ClientPropertyName("appointmentDoubleClick")]
public string OnClientAppointmentDoubleClick { get; set; }
The OnClientAppointmentInserting.
Gets or sets the OnClientAppointmentEditing.
[ClientControlEvent]
[ClientPropertyName("appointmentEditing")]
public string OnClientAppointmentEditing { get; set; }
The OnClientAppointmentEditing.
Gets or sets the OnClientAppointmentInserting.
[ClientControlEvent]
[ClientPropertyName("appointmentInserting")]
public string OnClientAppointmentInserting { get; set; }
The OnClientAppointmentInserting.
Gets or sets a value indicating the client-side event handler that is called when an appointment has been moved.
[ClientControlEvent]
[ClientPropertyName("appointmentMoveEnd")]
public string OnClientAppointmentMoveEnd { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientAppointmentMoveEnd client-side event handler is called when an appointment has been moved.
The event will also be fired when the move operation has been aborted by the user. In this case the get_isAbortedByUser() property of the event arguments will be set to "true".
The event will also fire if the appointment is dropped in its original location, but no postback will occur as the appointment is not altered.
Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with six properties:
- get_appointment(), the instance of the appointment.
- get_newStartTime(), the new start time of the appointment.
- get_editingRecurringSeries(), a boolean value indicating whether the user has selected to edit the whole series.
- get_targetSlot(), the target slot that the appointment has been moved to.
- get_isAbortedByUser(), indicates whether the move operation has been aborted as a result of user action.
- set_cancel(), set to true to cancel the move operation.
This event can be cancelled.
Gets or sets a value indicating the client-side event handler that is called when an appointment is about to be moved.
[ClientControlEvent]
[ClientPropertyName("appointmentMoveStart")]
public string OnClientAppointmentMoveStart { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientAppointmentMoveStart client-side event handler is called when an appointment is about to be moved. Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with four properties:
- get_appointment(), the instance of the appointment.
- set_cancel(), set to true to cancel the move operation.
This event can be cancelled.
Gets or sets a value indicating the client-side event handler that is called when an appointment is being moved.
[ClientControlEvent]
[ClientPropertyName("appointmentMoving")]
public string OnClientAppointmentMoving { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientAppointmentMoving client-side event handler is called when an appointment is being moved. Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with four properties:
- get_appointment(), the instance of the appointment.
- get_targetSlot(), the slot that the appointment currently occupies.
- set_cancel(), set to true to cancel the move operation.
This event can be cancelled.
Gets or sets the OnClientAppointmentResizeEnd.
[ClientControlEvent]
[ClientPropertyName("appointmentResizeEnd")]
public string OnClientAppointmentResizeEnd { get; set; }
The OnClientAppointmentResizeEnd.
Gets or sets the OnClientAppointmentResizeStart.
[ClientControlEvent]
[ClientPropertyName("appointmentResizeStart")]
public string OnClientAppointmentResizeStart { get; set; }
The OnClientAppointmentResizeStart.
Gets or sets the OnClientAppointmentResizing.
[ClientControlEvent]
[ClientPropertyName("appointmentResizing")]
public string OnClientAppointmentResizing { get; set; }
The OnClientAppointmentResizing.
Gets or sets a value indicating the client-side event handler that is called when an appointment has been serialized to a data object and is about to be sent to the Web Service.
[ClientControlEvent]
[ClientPropertyName("appointmentSerialized")]
public string OnClientAppointmentSerialized { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientAppointmentSerialized client-side event handler is called when an appointment has been serialized to a data object and is about to be sent to the Web Service.
In the case of server-side binding, the event will not be raised.
When client-side binding is used, the event will be raised before the appointment is sent to the data service.
Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with two properties:
- get_appointment(), the instance of the appointment;
- get_data(), the constructed data object that will be sent to the web service.
This event cannot be cancelled.
Gets or sets a value indicating the client-side event handler that is called when the scheduler has received appointments from the Web Service.
[ClientControlEvent]
[ClientPropertyName("appointmentsPopulated")]
public string OnClientAppointmentsPopulated { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientAppointmentsPopulated client-side event handler is called when the scheduler has received appointments.
In the case of server-side binding, the event will not be raised.
When client-side binding is used, the event will be raised after the appointments are retrieved from the data service. The event will be raised again each time new data has been retrieved from the web service.
One parameter is passed to the handler:
- sender, the scheduler client object;
This event cannot be cancelled.
Gets or sets a value indicating the client-side event handler that is called when the scheduler is about to request appointments from the Web Service.
[ClientControlEvent]
[ClientPropertyName("appointmentsPopulating")]
public string OnClientAppointmentsPopulating { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientAppointmentsPopulating client-side event handler is called when the scheduler is about to request appointments.
In the case of server-side binding, the event will not be raised.
When client-side binding is used, the event will be raised before the appointments are retrieved from the data service. The event will be raised again each time new data is about to be retrieved from the web service.
Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with two properties:
- get_schedulerInfo(), the schedulerInfo object that will be passed to the web service method.
- set_cancel(), used to cancel the event.
This event can be cancelled.
Gets or sets a value indicating the client-side event handler that is called when an appointment is about to be deleted via Web Service call.
[ClientControlEvent]
[ClientPropertyName("appointmentWebServiceDeleting")]
public string OnClientAppointmentWebServiceDeleting { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientAppointmentWebServiceDeleting client-side event handler is called when an appointment is about to be deleted via Web Service call.
In the case of server-side binding, the event will not be raised.
Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with three properties:
- get_appointment(), the appointment that is about to be deleted.
- get_editingRecurringSeries(), indicates whether the recurring series are being deleted.
- set_cancel(), set to true cancel the operation.
- get_schedulerInfo(), the schedulerInfo object that will be passed to the web service method.
This event can be cancelled.
Gets or sets a value indicating the client-side event handler that is called when an appointment is about to be stored via Web Service call.
[ClientControlEvent]
[ClientPropertyName("appointmentWebServiceInserting")]
public string OnClientAppointmentWebServiceInserting { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientAppointmentWebServiceInserting client-side event handler is called when an appointment is about to be stored via Web Service call.
In the case of server-side binding, the event will not be raised.
Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with two properties:
- get_appointment(), the appointment that is about to be inserted.
- set_cancel(), set to true cancel the operation.
- get_schedulerInfo(), the schedulerInfo object that will be passed to the web service method.
This event can be cancelled.
Gets or sets a value indicating the client-side event handler that is called when an appointment is about to be updated via Web Service call.
[ClientControlEvent]
[ClientPropertyName("appointmentWebServiceUpdating")]
public string OnClientAppointmentWebServiceUpdating { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientAppointmentWebServiceUpdating client-side event handler is called when an appointment is about to be updated via Web Service call.
In the case of server-side binding, the event will not be raised.
Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with two properties:
- get_appointment(), the appointment that is about to be updated.
- set_cancel(), set to true cancel the operation.
- get_schedulerInfo(), the schedulerInfo object that will be passed to the web service method.
This event can be cancelled.
Gets or sets a value indicating the client-side event handler that is called when the scheduler has been populated with data.
[ClientControlEvent]
[ClientPropertyName("dataBound")]
public string OnClientDataBound { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientDataBound client-side event handler is called when the scheduler has been populated with data.
In the case of server-side binding, the event will be raised immediately after the control is initialized.
When client-side binding is used, the event will be raised when both the appointments and the resources are retrieved from the data service. The event will be raised again each time new data is retrieved from the web service.
One parameter is passed to the handler:
- sender, the scheduler client object;
This event cannot be cancelled.
Gets or sets a value indicating the client-side event handler that is called when an edit/insert form has been created.
[ClientControlEvent]
[ClientPropertyName("formCreated")]
public string OnClientFormCreated { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientFormCreated client-side event handler is called when an edit/insert form has been created. Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with two properties:
- get_appointment(), the instance of the appointment.
- get_formElement(), the DOM element of the form.
- get_mode(), enumerable of type Telerik.Web.UI.SchedulerFormMode. See SchedulerFormMode for the list of possible values.
- get_editingRecurringSeries(), a boolean indicating if the user has chosen to edit the recurring series (true) or a single occurrence (false).
This event cannot be cancelled.
Gets or sets a value indicating the client-side event handler that is called when the scheduler is about to execute a navigation command.
[ClientControlEvent]
[ClientPropertyName("navigationCommand")]
public string OnClientNavigationCommand { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientNavigationCommand client-side event handler is called when the scheduler is about to execute a navigation command.
Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with two properties:
- get_command(), the navigation command that is being processed.
- set_cancel(), used to cancel the event.
This event can be cancelled.
Gets or sets a value indicating the client-side event handler that is called when a navigation command has been completed.
[ClientControlEvent]
[ClientPropertyName("navigationComplete")]
public string OnClientNavigationComplete { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnNavigationComplete client-side event handler is called when a navigation command has been completed.
The event will be raised only when client-side binding is used.
Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with one properties:
- get_command(), the navigation command that is being processed.
This event cannot be cancelled.
Gets or sets a value indicating the client-side event handler that is called when the recurrence action confirmation dialog has been closed.
[ClientControlEvent]
[ClientPropertyName("recurrenceActionDialogClosed")]
public string OnClientRecurrenceActionDialogClosed { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientRecurrenceActionDialogClosed client-side event handler is called when the recurrence action confirmation dialog has been closed. Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with three properties:
- get_appointment(), the instance of the appointment.
- get_editSeries(), the selected option from the dialog.
This event cannot be cancelled.
Gets or sets a value indicating the client-side event handler that is called when the recurrence action confirmation dialog is about to be shown.
[ClientControlEvent]
[ClientPropertyName("recurrenceActionDialogShowing")]
public string OnClientRecurrenceActionDialogShowing { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientRecurrenceActionDialogShowing client-side event handler is called when the recurrence action confirmation dialog is about to be shown. Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with three properties:
- get_appointment(), the instance of the appointment.
- set_cancel(), set to true to suppress the confirmation dialog.
- set_editSeries(), set to true or false to override the result from the dialog (only if it has been cancelled by calling eventArgs.set_cancel(true)).
This event can be cancelled.
Gets or sets a value indicating the client-side event handler that is called when a recurrence exception is about to be created via Web Service call.
[ClientControlEvent]
[ClientPropertyName("recurrenceExceptionCreating")]
public string OnClientRecurrenceExceptionCreating { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientRecurrenceExceptionCreating client-side event handler is called when a recurrence exception is about to be created via Web Service call.
In the case of server-side binding, the event will not be raised.
Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with two properties:
- get_appointment(), the appointment that represents the recurrence exception that is about to be stored.
- set_cancel(), set to true cancel the operation.
- get_schedulerInfo(), the schedulerInfo object that will be passed to the web service method.
This event can be cancelled.
Gets or sets a value indicating the client-side event handler that is called when recurrence exceptions are about to be removed via Web Service call.
[ClientControlEvent]
[ClientPropertyName("recurrenceExceptionsRemoving")]
public string OnClientRecurrenceExceptionsRemoving { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientRecurrenceExceptionsRemoving client-side event handler is called when recurrence exceptions are about to be removed via Web Service call.
In the case of server-side binding, the event will not be raised.
When client-side binding is used, the event will be raised when the user chooses to remove the recurrence exceptions of a given series through the advanced form.
Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with two properties:
- get_appointment(), the master appointment that represents the recurrence series.
- set_cancel(), set to true cancel the operation.
- get_schedulerInfo(), the schedulerInfo object that will be passed to the web service method.
This event can be cancelled.
Gets or sets a value indicating the client-side event handler that is called when an appointment reminder is about to be dismissed.
[ClientControlEvent]
[ClientPropertyName("reminderDismissing")]
public string OnClientReminderDismissing { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientReminderDismissing client-side event handler is called when an appointment reminder has been dismissed by the user, before the command is sent to the server.
Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with three properties:
- get_appointment(), the instance of the appointment.
- get_reminder(), the reminder.
- set_cancel(), used to cancel the event.
This event can be cancelled.
Gets or sets a value indicating the client-side event handler that is called when an appointment reminder is about to be snoozed.
[ClientControlEvent]
[ClientPropertyName("reminderSnoozing")]
public string OnClientReminderSnoozing { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientReminderSnoozing client-side event handler is called when an appointment reminder has been snoozed by the user, before the command is sent to the server.
Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with three properties:
- get_appointment(), the instance of the appointment.
- get_reminder(), the snoozed reminder.
- set_cancel(), used to cancel the event.
This event can be cancelled.
Gets or sets a value indicating the client-side event handler that is called when an appointment reminder is due and is about to be triggered.
[ClientControlEvent]
[ClientPropertyName("reminderTriggering")]
public string OnClientReminderTriggering { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientReminderTriggering client-side event handler is called when an appointment reminder is about to be triggered, before the pop-up dialog is shown.
Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with three properties:
- get_appointment(), the instance of the appointment.
- get_reminder(), the reminder.
- set_cancel(), used to cancel the event.
This event can be cancelled. Doing so effectively ignores the reminder.
Gets or sets a value indicating the client-side event handler that is called when a request to the Web Service has failed.
[ClientControlEvent]
[ClientPropertyName("requestFailed")]
public string OnClientRequestFailed { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientRequestFailed client-side event handler is called when a request to the Web Service has failed.
In the case of server-side binding, the event will not be raised.
Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with two properties:
- get_errorMessage(), the error message sent from the server.
- set_cancel(), set to true to suppress the default action (alert message).
This event can be cancelled.
Gets or sets a value indicating the client-side event handler that is called when a request to the Web Service has succeeded.
[ClientControlEvent]
[ClientPropertyName("requestSuccess")]
public string OnClientRequestSuccess { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientRequestSuccess client-side event handler is called when a request to the Web Service has succeeded.
In the case of server-side binding, the event will not be raised.
Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with one property:
- get_result(), the object received from the server as.
This event can be cancelled.
Gets or sets a value indicating the client-side event handler that is called when the scheduler has received resources from the Web Service.
[ClientControlEvent]
[ClientPropertyName("resourcesPopulated")]
public string OnClientResourcesPopulated { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientResourcesPopulated client-side event handler is called when the scheduler has received resources.
In the case of server-side binding, the event will not be raised.
When client-side binding is used, the event will be raised after the resources have been retrieved from the data service. The event will be raised only once, at the time of the initial load.
One parameter is passed to the handler:
- sender, the scheduler client object;
This event cannot be cancelled.
Gets or sets a value indicating the client-side event handler that is called when the scheduler is about to request resources from the Web Service.
[ClientControlEvent]
[ClientPropertyName("resourcesPopulating")]
public string OnClientResourcesPopulating { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientResourcesPopulating client-side event handler is called when the scheduler is about to request resources.
In the case of server-side binding, the event will not be raised.
When client-side binding is used, the event will be raised before the resources are retrieved from the data service. The event will be raised only once, at the time of the initial load.
Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with two properties:
- get_schedulerInfo(), the schedulerInfo object that will be passed to the web service method.
- set_cancel(), used to cancel the event.
This event can be cancelled.
Gets or sets the on client time slot click.
[ClientControlEvent]
[ClientPropertyName("timeSlotClick")]
public string OnClientTimeSlotClick { get; set; }
The on client time slot click.
Gets or sets a value indicating the client-side event handler that is called when an empty time slot has been right-clicked.
[ClientControlEvent]
[ClientPropertyName("timeSlotContextMenu")]
public string OnClientTimeSlotContextMenu { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientAppointmentContextMenu client-side event handler is called when an empty time slot has been right-clicked. Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with four properties:
- get_targetSlot(), the target slot.
- get_time(), the time that corresponds to the slot.
- get_isAllDay(), a boolean indicating if this is an all-day slot (the time should be discarded in this case).
- get_domEvent(), the original DOM event.
This event cannot be cancelled.
Gets or sets a value indicating the client-side event handler that is called when a time slot context menu item is clicked, after RadScheduler has processed the event.
[ClientControlEvent]
[ClientPropertyName("timeSlotContextMenuItemClicked")]
public string OnClientTimeSlotContextMenuItemClicked { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientTimeSlotContextMenuItemClicking client-side event handler is called when a time slot context menu item is clicked, after RadScheduler has processed the event.
Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with two properties:
- get_slot(), the instance of the time slot.
- get_item(), the clicked menu item.
This event cannot be cancelled.
Gets or sets a value indicating the client-side event handler that is called when a time slot context menu item is clicked, before RadScheduler processes the click event.
[ClientControlEvent]
[ClientPropertyName("timeSlotContextMenuItemClicking")]
public string OnClientTimeSlotContextMenuItemClicking { get; set; }
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
If specified, the OnClientTimeSlotContextMenuItemClicking client-side event handler is called when a time slot context menu item is clicked, before RadScheduler processes the click event.
Two parameters are passed to the handler:
- sender, the scheduler client object;
- eventArgs with three properties:
- get_slot(), the instance of the time slot.
- get_item(), the clicked menu item.
- set_cancel(), used to cancel the event.
This event can be cancelled. Cancelling it will prevent any further processing of the command.
Gets or sets a value specifying the way RadScheduler should behave when its content overflows its dimensions.
[ClientControlProperty]
[ClientPropertyName("overflowBehavior")]
public OverflowBehavior OverflowBehavior { get; set; }
One of the OverflowBehavior values. The default value is OverflowBehavior.Scroll.
By default RadScheduler will render a scrollbar should its content exceed the specified dimensions (set via the Width and Height properties). If Expand is set RadScheduler will expand vertically. The Height property must not be set in that case.
Gets or sets the provider instance to be used by RadScheduler. Use this property with providers that are created at runtime. For ASP.NET providers defined in web.config use the ProviderName property.
[Browsable(false)]
public SchedulerProviderBase Provider { get; set; }
The provider instance to be used by RadScheduler.
Gets the current provider context. The context object contains additional information about the currently performed operation, that can be used to improve and optimize provider implementations.
[Browsable(false)]
public object ProviderContext { get; protected set; }
The current provider context. The context object can be of type UpdateAppointmentContext or CreateRecurrenceExceptionContext.
Gets or sets the name of the current appointment provider used by RadScheduler. The provider must be defined in the RadScheduler section of web.config.
[PersistenceMode(PersistenceMode.Attribute)]
public string ProviderName { get; set; }
The name of the current appointment provider used by RadScheduler as defined in web.config.
Gets or sets a value indicating whether RadScheduler is in read-only mode.
[ClientControlProperty]
[ClientPropertyName("readOnly")]
public bool ReadOnly { get; set; }
true if RadScheduler should be read-only; false otherwise. The default value is false.
By default the user is able to insert, edit and delete appointments. Use the ReadOnly to disable the editing capabilities of RadScheduler.
Gets a boolean value that indicates if recurrence support has been configured for this instance of RadScheduler.
[Browsable(false)]
public virtual bool RecurrenceSupport { get; }
True when the DataRecurrenceField and DataRecurrenceParentKeyField fields are set or when using a custom data provider.
False if either of the above conditions is not satisfied or when the EnableRecurrenceSupport property is set to false.
Gets the reminders.
[PersistenceMode(PersistenceMode.InnerProperty)]
public ReminderSettings Reminders { get; }
The reminders.
Gets a boolean value that indicates if reminders support has been configured for this instance of RadScheduler.
[Browsable(false)]
public virtual bool RemindersSupport { get; }
True when the DataReminderField field is set or when using a custom data provider.
False if the above conditions is not satisfied or when the Enabled property is set to false.
Gets or sets the resource header template.
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(SchedulerResourceContainer))]
public ITemplate ResourceHeaderTemplate { get; set; }
The resource header template.
A collection of all resources loaded by RadScheduler.
[Browsable(false)]
public ResourceCollection Resources { get; }
Gets a collection of ResourceStyleMapping objects can be used to associate resources with particular cascading style sheet (CSS) classes.
[PersistenceMode(PersistenceMode.InnerProperty)]
public ResourceStyleMappingCollection ResourceStyles { get; }
Resources are matched by all (boolean AND) specified properties.
Gets a collection of ResourceType objects that represent the resource types used by RadScheduler.
[PersistenceMode(PersistenceMode.InnerProperty)]
public ResourceTypeCollection ResourceTypes { get; }
Gets or sets the width of each row header.
public Unit RowHeaderWidth { get; set; }
The width of each row header
Gets or sets the height of RadScheduler rows.
[ClientControlProperty]
[ClientPropertyName("rowHeight")]
public Unit RowHeight { get; set; }
The height of a RadScheduler row
The meaning of this property is different depending on the current SelectedView. In DayView mode SelectedDate gets or sets the currently displayed date. In WeekView and MonthView view modes SelectedDate gets or sets the highlighted date in the current week or month.
public DateTime SelectedDate { get; set; }
Gets or sets the current view type.
[ClientControlProperty]
[ClientPropertyName("selectedView")]
public SchedulerViewType SelectedView { get; set; }
One of the SchedulerViewType values. The default is DayView.
Gets or sets a value indicating whether to render the all day pane.
[ClientControlProperty]
public bool ShowAllDayRow { get; set; }
true if the header is rendered; otherwise, false.
Gets or sets a value indicating whether to render date headers for the current view.
public bool ShowDateHeaders { get; set; }
true if the date headers for the current view are rendered; otherwise, false.
Gets or sets a value indicating whether to render the footer.
public bool ShowFooter { get; set; }
true if the footer is rendered; otherwise, false.
Gets or sets a value indicating whether to display the complete day (24-hour view) or the range between DayStartTime and DayEndTime.
[ClientControlProperty]
public bool ShowFullTime { get; set; }
true if showing the complete day (24-hour view); otherwise, false.
Gets or sets a value indicating whether to render the header.
public bool ShowHeader { get; set; }
true if the header is rendered; otherwise, false.
Gets or sets a value indicating whether to render the hours column in day and week view.
public bool ShowHoursColumn { get; set; }
true if the hours column is rendered in day and week view; otherwise, false.
Gets or sets a value indicating whether to render the navigation links..
public bool ShowNavigationPane { get; set; }
true if the header is rendered; otherwise, false.
Gets or sets a value indicating whether to render resource headers for the current view.
public bool ShowResourceHeaders { get; set; }
true if the resource headers for the current view are rendered; otherwise, false.
Gets or sets a value indicating whether to render the tabs for switching between the view types.
public bool ShowViewTabs { get; set; }
true if the tabs is rendered; otherwise, false.
Gets or sets a value indicating whether "advanced" mode is the default edit mode.
[ClientControlProperty]
[ClientPropertyName("_startEditingInAdvancedForm")]
public bool StartEditingInAdvancedForm { get; set; }
true if the "advanced" mode is the default edit mode; false if "inline" is default edit mode. The default value is true.
Gets or sets a value indicating whether "advanced" mode is the default insert mode.
[ClientControlProperty]
[ClientPropertyName("_startInsertingInAdvancedForm")]
public bool StartInsertingInAdvancedForm { get; set; }
true if the "advanced" mode is the default insert mode; false if "inline" is default insert mode. The default value is false.
protected override bool SupportsRenderingMode { get; }
Overrides:
protected override HtmlTextWriterTag TagKey { get; }
Overrides:
Gets or sets the number of rows each time label spans.
[ClientControlProperty]
public int TimeLabelRowSpan { get; set; }
The number of rows each time label spans. The default value is 2
Gets the timeline view.
[PersistenceMode(PersistenceMode.InnerProperty)]
public TimelineViewSettings TimelineView { get; }
The timeline view.
Gets a collection of RadSchedulerContextMenu objects that represent the time slot context menus of the RadScheduler control.
[PersistenceMode(PersistenceMode.InnerProperty)]
public RadSchedulerContextMenuCollection TimeSlotContextMenus { get; }
Gets the time slot context menu settings.
[PersistenceMode(PersistenceMode.InnerProperty)]
public ContextMenuSettings TimeSlotContextMenuSettings { get; }
The time slot context menu settings.
Gets or sets the current time zone RadScheduler ins operating in
public string TimeZoneID { get; set; }
The time zone ID.
Gets or sets the time zone offset to use when displaying appointments.
public TimeSpan TimeZoneOffset { get; set; }
The time zone offset to use when displaying appointments.
The default value is TimeSpan.Zero. This property is ignored if TimeZoneID is set.
Gets the time zones enabled.
public bool TimeZonesEnabled { get; }
The time zones enabled.
Gets a collection of Appointment objects that represent individual appointments in the RadScheduler control.
[Browsable(false)]
public TimeZoneProviderBase TimeZonesProvider { get; }
A collection of the currently loaded Appointment objects.
Gets the unique, hierarchically qualified identifier for the server control.
[ClientControlProperty]
[ClientPropertyName("_uniqueId")]
public override string UniqueID { get; }
The fully qualified identifier for the server control.
Overrides:
Gets or sets the name of the validation group to be used for the integrated validation controls.
[ClientControlProperty]
[ClientPropertyName("validationGroup")]
public string ValidationGroup { get; set; }
Returns visible end date of the current view.
[Browsable(false)]
public DateTime VisibleRangeEnd { get; }
All tasks rendered in the current view will be within the range specified by the VisibleRangeStart and VisibleRangeEnd properties.
Returns visible start date of the current view.
[Browsable(false)]
public DateTime VisibleRangeStart { get; }
All tasks rendered in the current view will be within the range specified by the VisibleRangeStart and VisibleRangeEnd properties.
Gets or sets the time zone offset to use when determining todays date.
[Browsable(false)]
public TimeSpan VisualTimeZoneOffset { get; set; }
The time zone offset to use when determining todays date.
The default value is the system's time zone offset. This value is ignored when TimeZoneOffset is set.
protected DateTime VisualToday { get; }
Gets the web service to be used for binding this instance of RadScheduler.
[PersistenceMode(PersistenceMode.InnerProperty)]
public SchedulerWebServiceSettings WebServiceSettings { get; }
The web service settings.
Gets the WeekView settings.
[PersistenceMode(PersistenceMode.InnerProperty)]
public WeekViewSettings WeekView { get; }
The WeekView.
Gets or sets the time used to denote the end of the work day.
public TimeSpan WorkDayEndTime { get; set; }
The time used to denote the end of the work day.
The effect from this property is only visual. This property is ignored in MonthView mode.
Gets or sets the time used to denote the start of the work day.
public TimeSpan WorkDayStartTime { get; set; }
The time used to denote the start of the work day.
The effect from this property is only visual. This property is ignored in MonthView mode.
[PersistenceMode(PersistenceMode.InnerProperty)]
public YearViewSettings YearView { get; }
The year view.
Methods
protected override void AddAttributesToRender(HtmlTextWriter writer)
Overrides:
protected void ClearChildControls()
Creates a new appointment instance. This method is used internally by RadScheduler and can be used by custom appointment providers.
public virtual Appointment CreateAppointment()
A new appointment instance.
Implements:
Normally this is an instance of the Appointment class.
This method can be overriden by inheritors to create instances of custom classes.
An alternative method for working with custom appointments is to use the AppointmentFactory property.
protected override void CreateChildControls()
Overrides:
protected static WebControl CreateSpacer(RadScheduler scheduler)
protected static WebControl CreateWrapper(RadScheduler scheduler)
Deletes the appointment or the recurrence series it is part of.
public void DeleteAppointment(Appointment appointmentToDelete, bool deleteSeries)
The appointment to delete.
deleteSeriesboolif set to true delete complete recurrence series.
When deleting an appointment that is part of recurrence series and deleteSeries is set to false this method will update the master appointment to produce a recurrence exception.
protected override void DescribeClientEvents(IScriptDescriptor descriptor)
Overrides:
protected override void DescribeClientProperties(IScriptDescriptor descriptor)
Overrides:
protected override void DescribeComponent(IScriptDescriptor descriptor)
Overrides:
Updates the appointment by dismissing its reminder.
public void DismissAppointmentReminder(Appointment appointmentToUpdate, Appointment originalAppointment)
The appointment to update.
originalAppointmentAppointmentThe original appointment.
Converts a date time object from client date format to UTC using the TimeZoneOffset property.
public virtual DateTime DisplayToUtc(DateTime displayDate)
The date to convert. Must be in client format.
Returns:The date in UTC format which corresponds to the supplied client format date.
RadScheduler always stores dates in UTC format to allow support for multiple time zones. The DisplayToUtc method must be used when a date is supplied to RadScheduler to be persisted in some way. For example updating the Start property from a textbox.
protected override void EnsureDataBound()
Overrides:
public static string ExportToICalendar(Appointment appointment, bool hasTimeZones)
Exports an appointment to iCalendar format.
public static string ExportToICalendar(Appointment appointment, TimeSpan timeZoneOffset)
The appointment which should be exported.
timeZoneOffsetTimeSpanThe time zone offset to apply to the exported appointments.
Returns:A string containing the appointment in iCalendar format.
The return value should be saved as a text file with an "ics" extension.
Exports an appointment to iCalendar format.
public static string ExportToICalendar(Appointment appointment)
The appointment which should be exported.
Returns:A string containing the appointment in iCalendar format.
The return value should be saved as a text file with an "ics" extension.
public static string ExportToICalendar(AppointmentCollection appointments, bool hasTimeZones)
Exports the specified appointments to iCalendar format.
public static string ExportToICalendar(AppointmentCollection appointments, TimeSpan timeZoneOffset)
A collection of appointments which should be exported.
timeZoneOffsetTimeSpanThe time zone offset to apply to the exported appointments.
Returns:A string containing the iCalendar representation of the supplied appointments.
The return value should be saved as a text file with an "ics" extension.
Exports the specified appointments to iCalendar format.
public static string ExportToICalendar(AppointmentCollection appointments)
A collection of appointments which should be exported.
Returns:A string containing the iCalendar representation of the supplied appointments.
The return value should be saved as a text file with an "ics" extension.
Exports the specified appointments to iCalendar format.
public static string ExportToICalendar(IEnumerable<Appointment> appointments, TimeSpan timeZoneOffset)
An IEnumerable of appointments which should be exported.
timeZoneOffsetTimeSpanThe time zone offset to apply to the exported appointments.
Returns:A string containing the iCalendar representation of the supplied appointments.
The return value should be saved as a text file with an "ics" extension.
Exports the specified appointments to iCalendar format.
public static string ExportToICalendar(IEnumerable<Appointment> appointments)
An IEnumerable of appointments which should be exported.
Returns:A string containing the iCalendar representation of the supplied appointments.
The return value should be saved as a text file with an "ics" extension.
Exports to PDF.
public void ExportToPdf()
Returns the results of a callback event that targets a control.
protected override IEnumerable<ScriptReference> GetScriptReferences()
Overrides:
Retrieves a TimeSlot object from its client-side index
public ISchedulerTimeSlot GetTimeSlotFromIndex(string index)
String representation of the TimeSlot's index
Returns:The TimeSlot that corresponds to the passed index
Hides the active insert or edit form (if any).
public void HideEditForm()
Inserts the specified appointment in the Appointments collection, expands the series (if it is recurring) and inserts persists it through the provider.
public void InsertAppointment(Appointment appointmentToInsert)
The appointment to insert.
protected override void LoadControlState(object savedState)
Overrides:
Executed when post data is loaded from the request
protected override bool LoadPostData(string postDataKey, NameValueCollection postCollection)
Overrides:
protected virtual bool OnAppointmentCancelingEdit(Appointment appointment, SchedulerFormContainer container)
protected virtual void OnAppointmentClick(Appointment clickedAppointment)
protected virtual void OnAppointmentCommand(SchedulerAppointmentContainer container, string commandName, object commandArgument)
protected virtual void OnAppointmentContextMenuItemClicked(Appointment appointment, RadMenuItem menuItem)
protected virtual bool OnAppointmentContextMenuItemClicking(Appointment appointment, RadMenuItem menuItem)
protected virtual void OnAppointmentCreated(Appointment appointment, SchedulerAppointmentContainer container)
protected virtual void OnAppointmentDataBound(Appointment appointment)
protected virtual bool OnAppointmentDelete(AppointmentDeleteEventArgs args)
protected virtual bool OnAppointmentInsert(AppointmentInsertEventArgs args)
protected virtual bool OnAppointmentsPopulating(AppointmentsPopulatingEventArgs args)
protected virtual bool OnAppointmentUpdate(AppointmentUpdateEventArgs args)
protected override void OnDataPropertyChanged()
Overrides:
protected virtual void OnFormCreated(Appointment appointment, SchedulerFormContainer container)
protected virtual bool OnFormCreating(Appointment appointment, SchedulerFormMode mode)
protected virtual bool OnOccurrenceDelete(Appointment masterAppointment, Appointment occurrenceAppointment)
protected virtual void OnPdfExporting(SchedulerPdfExportingEventArgs args)
protected virtual bool OnRecurrenceExceptionCreated(Appointment masterAppointment, Appointment exceptionAppointment, Appointment occurrenceAppointment)
protected virtual void OnResourceHeaderCreated(SchedulerResourceContainer resourceContainer)
protected virtual bool OnResourcesPopulating(ResourcesPopulatingEventArgs args)
protected virtual bool OnSchedulerNavigationCommand(SchedulerNavigationCommand command, DateTime selectedDate)
protected virtual bool OnSchedulerNavigationCommand(SchedulerNavigationCommand command)
protected virtual void OnSchedulerNavigationComplete(SchedulerNavigationCommand command)
protected virtual void OnTimeSlotContextMenuItemClicked(ISchedulerTimeSlot timeSlot, RadMenuItem menuItem, ISchedulerTimeSlot startSlot, ISchedulerTimeSlot endSlot)
protected virtual bool OnTimeSlotContextMenuItemClicking(ISchedulerTimeSlot timeSlot, RadMenuItem menuItem, ISchedulerTimeSlot startSlot, ISchedulerTimeSlot endSlot)
protected virtual void OnTimeSlotCreated(ISchedulerTimeSlot timeSlot)
protected override void PerformSelect()
Overrides:
protected override RenderMode PreferredRenderMode(RenderModeBrowserAdaptor browser)
Overrides:
Prepares the specified appointment for editing.
public Appointment PrepareToEdit(Appointment appointmentToEdit, bool editSeries)
The appointment to edit.
editSeriesboolif set to true [edit series].
If the specified appointment is not recurring, the method does nothing and returns the same appointment. If the appointment is recurring and editSeries is set to true the method returns the recurrence parent. Otherwise, the method clones the appointment and updates it state to recurrence exception.
Processes a callback event that targets a control.
public void RaiseCallbackEvent(string eventArgument)
A string that represents an event argument to pass to the event handler.
Implements:
Rebinds this instance.
public void Rebind()
Removes the associated recurrence exceptions through the provider.
public void RemoveRecurrenceExceptions(Appointment master)
The recurrence master.
protected override void RenderContents(HtmlTextWriter writer)
Overrides:
Shows the advanced edit form.
public void ShowAdvancedEditForm(Appointment appointmentToEdit, bool editSeries)
The appointment which is edited. Its properties are used to populate the edit form.
editSeriesboolA boolean value indicating whether to edit the recurring series.
Shows the advanced edit form.
public void ShowAdvancedEditForm(Appointment appointmentToEdit)
The appointment which is edited. Its properties are used to populate the edit form.
Shows the advansed insert form.
public void ShowAdvancedInsertForm(DateTime showAt)
Specifies the start time for the insert form. It is used to determine the row in which the form is shown.
Shows the all-day inline insert form
public void ShowAlldayInlineInsertForm(DateTime showAt)
Specifies the start time for the insert form. It is used to determine the row in which the form is shown.
Shows the inline edit form.
public void ShowInlineEditForm(Appointment appointmentToEdit, bool editSeries)
The appointment which is edited. Its properties are used to populate the edit form.
editSeriesboolA boolean value indicating whether to edit the recurring series.
Shows the inline edit form.
public void ShowInlineEditForm(Appointment appointmentToEdit)
The appointment which is edited. Its properties are used to populate the edit form.
Shows the inline insert form.
public void ShowInlineInsertForm(DateTime showAt)
Specifies the start time for the insert form. It is used to determine the row in which the form is shown.
Shows the inline insert form.
public void ShowInlineInsertForm(ISchedulerTimeSlot timeSlot)
The time slot object where the insert form will be shown
protected virtual void TrackNavigationCommand(SchedulerNavigationCommandEventArgs e)
protected virtual void TrackPdfExport()
protected override void TrackViewState()
Overrides:
Updates the specified appointment and persists the changes through the provider.
Use this overload when the underlying data source requires both original and modified data to perform an update operation. One such example is LinqDataSource.
public void UpdateAppointment(Appointment appointmentToUpdate, Appointment originalAppointment)
The appointment to update.
originalAppointmentAppointmentThe original appointment. Use Clone() to obtain a copy of the appointment before updating its properties.
This method can be used, along with PrepareToEdit(Appointment, bool) to create and persist a recurrence exceptions.
Updates the specified appointment and persists the changes through the provider.
public void UpdateAppointment(Appointment appointmentToUpdate)
The appointment to update.
This method can be used, along with PrepareToEdit(Appointment, bool) to create and persist a recurrence exceptions.
Converts a date time object from UTC to client date format using the TimeZoneOffset property.
public virtual DateTime UtcToDisplay(DateTime utcDate)
The date to convert. Must be in UTC format.
Returns:The date in client format which corresponds to the supplied UTC date
RadScheduler always stores dates in UTC format to allow support for multiple time zones. The UtcToDisplay method must be used when a date (e.g. Start) should be presented to the client in some way - e.g. displayed in a label.
Events
Occurs when the Cancel button of an edit form is clicked, but before RadScheduler exits edit mode.
public event AppointmentCancelingEditEventHandler AppointmentCancelingEdit
You can use this event to provide an event-handling method that performs a custom routine, such as stopping the cancel operation if it would put the appointment in an undesired state. To stop the cancel action set the Cancel property of AppointmentCancelingEditEventArgs to true.
Occurs when an appointment has been clicked.
public event AppointmentClickEventHandler AppointmentClick
You can use this event to perform additional actions when an appointment has been clicked.
Occurs when a button is clicked within the appointment template.
public event AppointmentCommandEventHandler AppointmentCommand
The AppointmentCommand event is raised when any button is clicked withing the appointment template. This event is commonly used to handle button controls with a custom CommandName value.
Occurs after an appointment context menu item is clicked.
public event AppointmentContextMenuItemClickedEventHandler AppointmentContextMenuItemClicked
The AppointmentContextMenuItemClicked event is raised after an appointment context menu item is clicked.
Occurs when an appointment context menu item is clicked, before processing default commands.
public event AppointmentContextMenuItemClickingEventHandler AppointmentContextMenuItemClicking
The AppointmentContextMenuItemClicking event is raised when an appointment context menu item is clicked, before are processing default commands.
Occurs when an appointment template has been instantiated.
public event AppointmentCreatedEventHandler AppointmentCreated
You can use this event to modify the appointment template before data binding.
Occurs when an appointment has been added to the Appointments collection from the data source.
public event AppointmentDataBoundEventHandler AppointmentDataBound
You can use this event to make adjustments to the appointments as they are being loaded.
Occurs when an appointment is about to be deleted from the database through the provider.
public event AppointmentDeleteEventHandler AppointmentDelete
The delete operation can be cancelled by setting the Cancel property of SchedulerCancelEventArgs to true.
Occurs when an appointment is about to be inserted in the database through the provider.
public event AppointmentInsertEventHandler AppointmentInsert
The insert operation can be cancelled by setting the Cancel property of SchedulerCancelEventArgs to true.
Occurs when the scheduler is about to request appointments from the provider / data source.
public event AppointmentsPopulatingEventHandler AppointmentsPopulating
You can use this event to supply additional information to the providers' GetAppointments(ISchedulerInfo) method.
In order to send additional data to the provider you need to inherit SchedulerInfo or implement ISchedulerInfo from scratch, adding your custom properties in the process. Replace the SchedulerInfo object with your implementation and access it from the providers' GetAppointments(ISchedulerInfo) method.
The operation can be cancelled by setting the Cancel property of AppointmentsPopulatingEventArgs to true.
Occurs when an appointment is about to be updated through the provider.
public event AppointmentUpdateEventHandler AppointmentUpdate
The AppointmentUpdateEventArgs hold a reference both to the original and the modified appointment. Any modifications on the original appointments are discarded. The update operation can be cancelled by setting the Cancel property of AppointmentUpdateEventArgs to true.
Occurs when an insert/edit form has been created.
public event SchedulerFormCreatedEventHandler FormCreated
You can use this event to make modifications to the form template.
Occurs when an insert/edit form is being created.
public event SchedulerFormCreatingEventHandler FormCreating
You can use this event to perform custom actions when a form is about to be created. The event can be cancelled by setting the Cancel property of SchedulerFormCreatingEventArgs to true.
Occurs when the RadScheduler is about to execute a navigation command.
public event SchedulerNavigationCommandEventHandler NavigationCommand
You can use this event to customize the action when the RadScheduler is about to execute a navigation command. The event can be cancelled by setting the Cancel property of SchedulerNavigationCommandEventArgs to true.
Occurs when a navigation command has been executed.
public event SchedulerNavigationCompleteEventHandler NavigationComplete
You can use this event to perform custom actions when a navigation command has been processed.
Occurs when an occurrence is about to be removed.
public event OccurrenceDeleteEventHandler OccurrenceDelete
The OccurrenceDeleteEventArgs hold a reference both to the master and the occurrence appointment. The operation can be cancelled by setting the Cancel property of OccurrenceDeleteEventArgs to true.
Fires when a scheduler is exporting.
public event SchedulerPdfExportingEventHandler PdfExporting
Occurs when an appointment that represents a recurrence exception is about to be created.
public event RecurrenceExceptionCreatedEventHandler RecurrenceExceptionCreated
The RecurrenceExceptionCreatedEventArgs hold a reference both to the master and the exception appointment. The operation can be cancelled by setting the Cancel property of RecurrenceExceptionCreatedEventArgs to true.
Occurs when a reminder has been dismissed.
public event ReminderDismissEventHandler ReminderDismiss
The ReminderSnoozeEventArgs contain:
- The dismissed reminder
- The original Appointment with non-modified reminders
- The modified ModifiedAppointment with updated reminders
- The modified ModifiedAppointment with updated reminders
The operation can be cancelled by setting the Cancel property of ReminderDismissEventArgs to true. If the operation is not cancelled RadScheduler will update the appointment.
Occurs when a reminder has been snoozed.
public event ReminderSnoozeEventHandler ReminderSnooze
The ReminderSnoozeEventArgs contain:
- The snoozed Reminder
- The Reminder the reminder was snoozed for. Positive values indicate that the reminder will be snoozed for the next N minutes; Negative values indicate that the reminder is snoozed until -N minutes before the appointment start.
- The Appointment the reminder belongs to
The operation can be cancelled by setting the Cancel property of ReminderSnoozeEventArgs to true. If the operation is not cancelled RadScheduler will update the appointment.
Occurs when a resource header has been created.
public event ResourceHeaderCreatedEventHandler ResourceHeaderCreated
You can use this event to make modifications to the resouce headers.
Occurs when the scheduler is about to request resources from the Web Service.
public event ResourcesPopulatingEventHandler ResourcesPopulating
Resources need to be populated from the server when using resource grouping. Doing so also reduces the client-side initialization time.
This operation requires the WebPermission to be granted for the Web Service URL. This permission is not granted by default in Medium Trust.
You can disable the population of the resources from the server and still use client-side rendering for grouped views. To do so you need to set the ResourcePopulationMode to Manual and populate the resources from the OnInit method of the page.
The ResourcesPopulatingEventArgs contains additional information about the request that is about to be made. You can use its properties to modify the URL, supply credentials and so on.
The operation can be cancelled by setting the Cancel property of ResourcesPopulatingEventArgs to true.
Occurs after a time slot context menu item is clicked.
public event TimeSlotContextMenuItemClickedEventHandler TimeSlotContextMenuItemClicked
The TimeSlotContextMenuItemClicked event is raised after a time slot context menu item is clicked.
Occurs when a time slot context menu item is clicked, before processing default commands.
public event TimeSlotContextMenuItemClickingEventHandler TimeSlotContextMenuItemClicking
The TimeSlotContextMenuItemClicking event is raised when a time slot context menu item is clicked, before are processing default commands.
Occurs when a time slot has been created.
public event TimeSlotCreatedEventHandler TimeSlotCreated
You can use this event to make modifications to the time slots.