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

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:

C#
[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: IAppointmentFactoryIAttributeAccessorICallbackEventHandlerIComponentIControlIControlBuilderAccessorIControlDesignerAccessorIControlResolverIDataBindingsAccessorIDisposableIExpressionsAccessorIFeatureGroupINamingContainerIParserAccessorIPostBackDataHandlerIPostBackEventHandlerIScriptControlISkinnableControlIUrlResolutionService...

Inherited Members DataBoundControl.OnCreatingModelDataSource(CreatingModelDataSourceEventArgs)DataBoundControl.CreateDataSourceSelectArguments()DataBoundControl.GetData()DataBoundControl.GetDataSource()DataBoundControl.MarkAsDataBound()DataBoundControl.OnLoad(EventArgs)DataBoundControl.OnPagePreLoad(object, EventArgs)DataBoundControl.PerformDataBinding(IEnumerable)DataBoundControl.ValidateDataSource(object)DataBoundControl.DataMemberDataBoundControl.IsUsingModelBindersDataBoundControl.ItemTypeDataBoundControl.SelectMethodDataBoundControl.DataSourceObjectDataBoundControl.SelectArgumentsDataBoundControl.CreatingModelDataSourceDataBoundControl.CallingDataMethodsBaseDataBoundControl.ConfirmInitState()BaseDataBoundControl.DataBind()BaseDataBoundControl.OnDataBound(EventArgs)BaseDataBoundControl.DataSourceBaseDataBoundControl.InitializedBaseDataBoundControl.IsBoundUsingDataSourceIDBaseDataBoundControl.IsDataBindingAutomaticBaseDataBoundControl.SupportsDisabledAttributeBaseDataBoundControl.RequiresDataBindingBaseDataBoundControl.DataBoundWebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.MergeStyle(Style)WebControl.Render(HtmlTextWriter)WebControl.RenderBeginTag(HtmlTextWriter)WebControl.RenderEndTag(HtmlTextWriter)WebControl.AccessKeyWebControl.AttributesWebControl.BackColorWebControl.BorderColorWebControl.BorderWidthWebControl.BorderStyleWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.CssClassWebControl.DisabledCssClassWebControl.StyleWebControl.EnabledWebControl.EnableThemingWebControl.FontWebControl.ForeColorWebControl.HasAttributesWebControl.IsEnabledWebControl.SkinIDWebControl.TabIndexWebControl.TagNameWebControl.ToolTipWebControl.WidthControl.ResolveAdapter()Control.HasEvents()Control.GetRouteUrl(object)Control.GetRouteUrl(string, object)Control.GetRouteUrl(RouteValueDictionary)Control.GetRouteUrl(string, RouteValueDictionary)Control.GetUniqueIDRelativeTo(Control)Control.ApplyStyleSheetSkin(Page)Control.OnDataBinding(EventArgs)Control.DataBind(bool)Control.DataBindChildren()Control.AddParsedSubObject(object)Control.EnsureID()Control.ClearChildState()Control.ClearChildControlState()Control.ClearChildViewState()Control.ClearEffectiveClientIDMode()Control.ClearCachedClientID()Control.Focus()Control.MapPathSecure(string)Control.OpenFile(string)Control.BuildProfileTree(string, bool)Control.RenderChildren(HtmlTextWriter)Control.RenderControl(HtmlTextWriter)Control.RenderControl(HtmlTextWriter, ControlAdapter)Control.OnUnload(EventArgs)Control.Dispose()Control.RaiseBubbleEvent(object, EventArgs)Control.AddedControl(Control, int)Control.CreateControlCollection()Control.ResolveUrl(string)Control.ResolveClientUrl(string)Control.FindControl(string)Control.FindControl(string, int)Control.GetDesignModeState()Control.HasControls()Control.IsLiteralContent()Control.EnsureChildControls()Control.RemovedControl(Control)Control.SetDesignModeState(IDictionary)Control.SetRenderMethodDelegate(RenderMethod)Control.ClientIDModeControl.ClientIDControl.ClientIDSeparatorControl.ContextControl.AdapterControl.DesignModeControl.EventsControl.IDControl.IsChildControlStateClearedControl.EnableViewStateControl.ViewStateModeControl.IsViewStateEnabledControl.NamingContainerControl.IdSeparatorControl.LoadViewStateByIDControl.PageControl.RenderingCompatibilityControl.TemplateControlControl.ParentControl.TemplateSourceDirectoryControl.AppRelativeTemplateSourceDirectoryControl.SiteControl.VisibleControl.HasChildViewStateControl.ControlsControl.ValidateRequestModeControl.ViewStateControl.ViewStateIgnoresCaseControl.ChildControlsCreatedControl.IsTrackingViewStateControl.DisposedControl.DataBindingControl.InitControl.LoadControl.PreRenderControl.Unloadobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public RadScheduler()

Properties

Gets or sets the advanced edit template.

C#
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(SchedulerFormContainer), BindingDirection.TwoWay)]
public ITemplate AdvancedEditTemplate { get; set; }
Property Value:

The advanced edit template.

Gets the Advanced form settings.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public AdvancedFormSettings AdvancedForm { get; }
Property Value:

The Advanced form settings.

Gets or sets the advanced insert template.

C#
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(SchedulerFormContainer), BindingDirection.TwoWay)]
public ITemplate AdvancedInsertTemplate { get; set; }
Property Value:

The advanced insert template.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public AgendaViewSettings AgendaView { get; }
Property Value:

The agenda view.

Gets or sets a value indicating whether appointments deleting is allowed.

C#
[ClientControlProperty]
[ClientPropertyName("allowDelete")]
public bool AllowDelete { get; set; }
Property Value:

true if appointments deleting is allowed; otherwise, false.

Gets or sets a value indicating whether appointments editing is allowed.

C#
[ClientControlProperty]
[ClientPropertyName("allowEdit")]
public bool AllowEdit { get; set; }
Property Value:

true if appointments editing is allowed; otherwise, false.

Gets or sets a value indicating whether appointments inserting is allowed.

C#
[ClientControlProperty]
[ClientPropertyName("allowInsert")]
public bool AllowInsert { get; set; }
Property Value:

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.

C#
[Browsable(false)]
public IComparer<Appointment> AppointmentComparer { get; set; }

Gets a collection of RadSchedulerContextMenu objects that represent the Appointment context menus of the RadScheduler control.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public RadSchedulerContextMenuCollection AppointmentContextMenus { get; }
Property Value:

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.

Example:
C#
&lt;%@ Register TagPrefix="Telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %&gt;

&lt;html&gt;
&lt;body&gt;
&lt;form id="form1" runat="server"&gt;
&lt;Telerik:RadScriptManager ID="RadScriptManager1" runat="server"&gt;&lt;/Telerik:RadScriptManager&gt;
&lt;br /&gt;
&lt;telerik:RadScheduler runat="server" ID="RadScheduler1"&gt;
&lt;AppointmentContextMenus&gt;
&lt;telerik:RadSchedulerContextMenu runat="server" ID="ContextMenu1"&gt;
&lt;Items&gt;
&lt;telerik:RadMenuItem Text="Open" Value="CommandEdit" /&gt;
&lt;telerik:RadMenuItem IsSeparator="True" /&gt;
&lt;telerik:RadMenuItem Text="Categorize"&gt;
&lt;Items&gt;
&lt;telerik:RadMenuItem Text="Development" Value="1" /&gt;
&lt;telerik:RadMenuItem Text="Marketing" Value="2" /&gt;
&lt;telerik:RadMenuItem Text="Personal" Value="3" /&gt;
&lt;telerik:RadMenuItem Text="Work" Value="4" /&gt;
&lt;/Items&gt;
&lt;/telerik:RadMenuItem&gt;
&lt;telerik:RadMenuItem IsSeparator="True" /&gt;
&lt;telerik:RadMenuItem Text="Delete" ImageUrl="Images/delete.gif" Value="CommandDelete" /&gt;
&lt;/Items&gt;
&lt;/telerik:RadSchedulerContextMenu&gt;
&lt;/AppointmentContextMenus&gt;
&lt;/telerik:RadScheduler&gt;

&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;

Gets the appointment context menu settings.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public ContextMenuSettings AppointmentContextMenuSettings { get; }
Property Value:

The appointment context menu settings.

A factory for appointment instances.

C#
[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.

C#
[Browsable(false)]
public AppointmentCollection Appointments { get; }
Property Value:

A collection of the currently loaded Appointment objects.

Defines the styling mode for appointments.

C#
[ClientControlProperty]
public AppointmentStyleMode AppointmentStyleMode { get; set; }
Property Value:

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.

C#
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(SchedulerAppointmentContainer))]
public ITemplate AppointmentTemplate { get; set; }
Property Value:

The appointment template.

Gets or sets the width of each content column.

C#
public Unit ColumnWidth { get; set; }
Property Value:

The width of each content column

The CssClass property will now be used instead of the former Skin and will be modified in AddAttributesToRender()

C#
protected override string CssClassFormatString { get; }

Overrides: RadDataBoundControl.CssClassFormatString

Example:
C#
protected override string CssClassFormatString
{
       get
       {
           return "RadDock RadDock_{0} rdWTitle rdWFooter";
       }
}

Gets or sets the selected culture. Localization strings will be loaded based on this value.

C#
public CultureInfo Culture { get; set; }
Property Value:

The culture.

Specifies the database fields (column names) which should be loaded as appointment attributes.

C#
[TypeConverter(typeof(StringArrayConverter))]
[PersistenceMode(PersistenceMode.Attribute)]
public string[] CustomAttributeNames { get; set; }
Property Value:

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.

C#
public string DataDescriptionField { get; set; }
Property Value:

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.

C#
public string DataEndField { get; set; }
Property Value:

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.

C#
public string DataKeyField { get; set; }
Property Value:

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.

C#
public string DataRecurrenceField { get; set; }
Property Value:

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.

C#
public string DataRecurrenceParentKeyField { get; set; }
Property Value:

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.

C#
public string DataReminderField { get; set; }
Property Value:

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.

C#
public override string DataSourceID { get; set; }

Overrides: RadDataBoundControl.DataSourceID

Gets or sets the start field for appointments in the data source specified by the DataSourceID property.

C#
public string DataStartField { get; set; }
Property Value:

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.

C#
public string DataSubjectField { get; set; }
Property Value:

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.

C#
public string DataTimeZoneIdField { get; set; }
Property Value:

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.

C#
public TimeSpan DayEndTime { get; set; }
Property Value:

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.

C#
public TimeSpan DayStartTime { get; set; }
Property Value:

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.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public DayViewSettings DayView { get; }
Property Value:

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.

C#
[ClientControlProperty]
[ClientPropertyName("displayDeleteConfirmation")]
public bool DisplayDeleteConfirmation { get; set; }
Property Value:

true if the confirmation dialog should be displayed; false otherwise. The default value is true.

Gets or sets a value indicating whether a confirmation dialog should be displayed when the user moves a recurring appointment.

C#
[ClientControlProperty]
[ClientPropertyName("displayRecurrenceActionDialogOnMove")]
public bool DisplayRecurrenceActionDialogOnMove { get; set; }
Property Value:

true if the confirmation dialog should be displayed; false otherwise. The default value is false.

Gets or sets the edit form date format string.

C#
[Obsolete("Obsoleted. Please, use AdvancedForm-DateFormat instead.")]
public string EditFormDateFormat { get; set; }
Property Value:

The edit form date format string.

Gets or sets the edit form time format string.

C#
[Obsolete("Obsoleted. Please, use AdvancedForm-TimeFormat instead.")]
public string EditFormTimeFormat { get; set; }
Property Value:

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.

C#
[Browsable(false)]
public bool EditingRecurringSeries { get; }
Property Value:

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.

C#
[Obsolete("Obsoleted. Please, use AdvancedForm-Enabled instead.")]
public bool EnableAdvancedForm { get; set; }
Property Value:

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.

C#
[Obsolete("Obsoleted. Please, use AdvancedForm-EnableCustomAttributeEditing instead.")]
public bool EnableCustomAttributeEditing { get; set; }
Property Value:

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.

C#
public bool EnableDatePicker { get; set; }
Property Value:

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.

C#
[ClientControlProperty]
[ClientPropertyName("_enableDescriptionField")]
public bool EnableDescriptionField { get; set; }
Property Value:

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.

C#
public bool EnableExactTimeRendering { get; set; }
Property Value:

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.

C#
public bool EnableRecurrenceSupport { get; set; }
Property Value:

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.

C#
[Obsolete("Obsoleted. Please, use AdvancedForm-EnableResourceEditing instead.")]
public bool EnableResourceEditing { get; set; }
Property Value:

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.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public SchedulerExportSettings ExportSettings { get; }
Property Value:

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.

C#
[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.

C#
[ClientControlProperty]
[ClientPropertyName("groupBy")]
public string GroupBy { get; set; }
Property Value:

The resource to group by.

Gets or sets the resource grouping direction of the RadScheduler.

C#
public GroupingDirection GroupingDirection { get; set; }
C#
protected bool HasCustomProvider { get; }
C#
protected bool HasDataSource { get; }
C#
protected bool HasDescriptionField { get; }

Gets or sets the height.

C#
public override Unit Height { get; set; }
Property Value:

The height.

Overrides: RadDataBoundControl.Height

Gets or sets the hours panel time format string.

C#
[ClientControlProperty]
public string HoursPanelTimeFormat { get; set; }
Property Value:

The hours panel time format string.

C#
protected bool InAdvancedMode { get; }

Gets or sets the inline edit template.

C#
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(SchedulerFormContainer), BindingDirection.TwoWay)]
public ITemplate InlineEditTemplate { get; set; }
Property Value:

The inline edit template.

Gets or sets the inline insert template.

C#
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(SchedulerFormContainer), BindingDirection.TwoWay)]
public ITemplate InlineInsertTemplate { get; set; }
Property Value:

The inline insert template.

C#
protected override bool IsBoundUsingOData { get; }

Overrides: RadDataBoundControl.IsBoundUsingOData

Gets or sets the last day of the week.

C#
[ClientControlProperty]
public DayOfWeek LastDayOfWeek { get; set; }

This property is applied in week and month view.

Gets the localization.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public SchedulerStrings Localization { get; }
Property Value:

The localization.

Gets or sets a value indicating where RadScheduler will look for its .resx localization files.

C#
public string LocalizationPath { get; set; }
Property Value:

The localization path.

Gets or sets the maximum recurrence candidates limit.

C#
public int MaximumRecurrenceCandidates { get; set; }
Property Value:

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.

C#
[ClientControlProperty]
[ClientPropertyName("minimumInlineFormHeight")]
public int MinimumInlineFormHeight { get; set; }
Property Value:

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.

C#
[ClientControlProperty]
[ClientPropertyName("minimumInlineFormWidth")]
public int MinimumInlineFormWidth { get; set; }
Property Value:

The minimum width of the inline insert/edit template.

Gets or sets the number of minuties which a single row represents

C#
[ClientControlProperty]
public int MinutesPerRow { get; set; }
Property Value:

An integer specifying how many minutes a row represents. The default value is 30.

Gets the Month view settings.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public MonthViewSettings MonthView { get; }
Property Value:

The month view.

Gets the Multi-day view settings.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public MultiDayViewSettings MultiDayView { get; }
Property Value:

The multi day view.

Gets or sets the number of rows that are hovered when the mouse is over the appointment area.

C#
[ClientControlProperty]
public int NumberOfHoveredRows { get; set; }
Property Value:

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.

C#
public override string ODataDataSourceID { get; set; }

Overrides: RadDataBoundControl.ODataDataSourceID

Gets or sets the OnClientAppointmentClick.

C#
[ClientControlEvent]
[ClientPropertyName("appointmentClick")]
public string OnClientAppointmentClick { get; set; }
Property Value:

The OnClientAppointmentClick.

Gets or sets a value indicating the client-side event handler that is called when an appointment has been right-clicked.

C#
[ClientControlEvent]
[ClientPropertyName("appointmentContextMenu")]
public string OnClientAppointmentContextMenu { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function onClientAppointmentContextMenuHandler(sender, eventArgs)<br />
{<br />
       var appointment = eventArgs.get_appointment();<br />
       // ... <br />
       eventArgs.get_domEvent().preventDefault(); // Prevent displaying the browser menu<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientAppointmentContextMenu="onClientAppointmentContextMenuHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

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.

C#
[ClientControlEvent]
[ClientPropertyName("appointmentContextMenuItemClicked")]
public string OnClientAppointmentContextMenuItemClicked { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function appointmentContextMenuItemClicked(sender, eventArgs)<br />
{<br />
       var appointment = eventArgs.get_appointment();<br />
       var clickedItem = eventArgs.get_item();<br />
       // ... <br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientAppointmentContextMenuItemClicked="appointmentContextMenuItemClicked"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

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.

C#
[ClientControlEvent]
[ClientPropertyName("appointmentContextMenuItemClicking")]
public string OnClientAppointmentContextMenuItemClicking { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function appointmentContextMenuItemClicking(sender, eventArgs)<br />
{<br />
       var appointment = eventArgs.get_appointment();<br />
       var clickedItem = eventArgs.get_item();<br />
       // ... <br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientAppointmentContextMenuItemClicking="appointmentContextMenuItemClicking"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

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.

C#
[ClientControlEvent]
[ClientPropertyName("appointmentCreated")]
public string OnClientAppointmentCreated { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function clientAppointmentCreatedHandler(sender, eventArgs)<br />
{<br />
       eventArgs.get_appointment().get_element().style.border = "1px solid red";<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientAppointmentCreated="clientAppointmentCreatedHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

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.

C#
[ClientControlEvent]
[ClientPropertyName("appointmentDataBound")]
public string OnClientAppointmentDataBound { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function clientAppointmentDataBoundHandler(sender, eventArgs)<br />
{<br />
       alert("Appointment loaded");<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientAppointmentDataBound="clientAppointmentDataBoundHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

Gets or sets the OnClientAppointmentDeleting.

C#
[ClientControlEvent]
[ClientPropertyName("appointmentDeleting")]
public string OnClientAppointmentDeleting { get; set; }
Property Value:

The OnClientAppointmentDeleting.

Gets or sets the OnClientAppointmentInserting.

C#
[ClientControlEvent]
[ClientPropertyName("appointmentDoubleClick")]
public string OnClientAppointmentDoubleClick { get; set; }
Property Value:

The OnClientAppointmentInserting.

Gets or sets the OnClientAppointmentEditing.

C#
[ClientControlEvent]
[ClientPropertyName("appointmentEditing")]
public string OnClientAppointmentEditing { get; set; }
Property Value:

The OnClientAppointmentEditing.

Gets or sets the OnClientAppointmentInserting.

C#
[ClientControlEvent]
[ClientPropertyName("appointmentInserting")]
public string OnClientAppointmentInserting { get; set; }
Property Value:

The OnClientAppointmentInserting.

Gets or sets a value indicating the client-side event handler that is called when an appointment has been moved.

C#
[ClientControlEvent]
[ClientPropertyName("appointmentMoveEnd")]
public string OnClientAppointmentMoveEnd { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function onClientAppointmentMoveEndHandler(sender, eventArgs)<br />
{<br />
       var appointment = eventArgs.get_appointment();<br />
       var newStartTime = eventArgs.get_newStartTime();<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientAppointmentMoveEnd="onClientAppointmentMoveEndHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

Gets or sets a value indicating the client-side event handler that is called when an appointment is about to be moved.

C#
[ClientControlEvent]
[ClientPropertyName("appointmentMoveStart")]
public string OnClientAppointmentMoveStart { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function onClientAppointmentMoveStartHandler(sender, eventArgs)<br />
{<br />
       var appointment = eventArgs.get_appointment();<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientAppointmentMoveStart="onClientAppointmentMoveStartHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

Gets or sets a value indicating the client-side event handler that is called when an appointment is being moved.

C#
[ClientControlEvent]
[ClientPropertyName("appointmentMoving")]
public string OnClientAppointmentMoving { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function onClientAppointmentMovingHandler(sender, eventArgs)<br />
{<br />
       var appointment = eventArgs.get_appointment();<br />
       var targetSlot = eventArgs.get_targetSlot();<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientAppointmentMoving="onClientAppointmentMovingHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

Gets or sets the OnClientAppointmentResizeEnd.

C#
[ClientControlEvent]
[ClientPropertyName("appointmentResizeEnd")]
public string OnClientAppointmentResizeEnd { get; set; }
Property Value:

The OnClientAppointmentResizeEnd.

Gets or sets the OnClientAppointmentResizeStart.

C#
[ClientControlEvent]
[ClientPropertyName("appointmentResizeStart")]
public string OnClientAppointmentResizeStart { get; set; }
Property Value:

The OnClientAppointmentResizeStart.

Gets or sets the OnClientAppointmentResizing.

C#
[ClientControlEvent]
[ClientPropertyName("appointmentResizing")]
public string OnClientAppointmentResizing { get; set; }
Property Value:

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.

C#
[ClientControlEvent]
[ClientPropertyName("appointmentSerialized")]
public string OnClientAppointmentSerialized { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function clientAppointmentSerializedHandler(sender, eventArgs)<br />
{<br />
       eventArgs.get_data().myProperty = 1234;<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientAppointmentSerialized="clientAppointmentSerializedHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

Gets or sets a value indicating the client-side event handler that is called when the scheduler has received appointments from the Web Service.

C#
[ClientControlEvent]
[ClientPropertyName("appointmentsPopulated")]
public string OnClientAppointmentsPopulated { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function clientAppointmentsPopulatedHandler(sender)<br />
{<br />
       alert("Appointments populated");<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientAppointmentsPopulated="clientAppointmentsPopulatedHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

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.

C#
[ClientControlEvent]
[ClientPropertyName("appointmentsPopulating")]
public string OnClientAppointmentsPopulating { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function clientAppointmentsPopulatingHandler(sender, eventArgs)<br />
{<br />
       alert("Data loading");<br />
       eventArgs.get_schedulerInfo().CustomProperty = "My Data";
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientAppointmentsPopulating="clientAppointmentsPopulatingHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

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.

C#
[ClientControlEvent]
[ClientPropertyName("appointmentWebServiceDeleting")]
public string OnClientAppointmentWebServiceDeleting { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function clientAppointmentWebServiceDeleting(sender, eventArgs)<br />
{<br />
       alert("Delete cancelled");<br />
       eventArgs.set_cancel(true);
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientAppointmentWebServiceDeleting="clientAppointmentWebServiceDeleting"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

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.

C#
[ClientControlEvent]
[ClientPropertyName("appointmentWebServiceInserting")]
public string OnClientAppointmentWebServiceInserting { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function clientAppointmentWebServiceInserting(sender, eventArgs)<br />
{<br />
       alert("Insert cancelled");<br />
       eventArgs.set_cancel(true);
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientAppointmentWebServiceInserting="clientAppointmentWebServiceInserting"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

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.

C#
[ClientControlEvent]
[ClientPropertyName("appointmentWebServiceUpdating")]
public string OnClientAppointmentWebServiceUpdating { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function clientAppointmentWebServiceUpdating(sender, eventArgs)<br />
{<br />
       alert("Update cancelled");<br />
       eventArgs.set_cancel(true);
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientAppointmentWebServiceUpdating="clientAppointmentWebServiceUpdating"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

Gets or sets a value indicating the client-side event handler that is called when the scheduler has been populated with data.

C#
[ClientControlEvent]
[ClientPropertyName("dataBound")]
public string OnClientDataBound { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function clientDataBoundHandler(sender, eventArgs)<br />
{<br />
       alert("Data loaded");<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientDataBound="clientDataBoundHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

Gets or sets a value indicating the client-side event handler that is called when an edit/insert form has been created.

C#
[ClientControlEvent]
[ClientPropertyName("formCreated")]
public string OnClientFormCreated { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function onClientFormCreatedHandler(sender, eventArgs)<br />
{<br />
       var appointment = eventArgs.get_appointment();<br />
       var formElement = eventArgs.get_formElement();<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientFormCreated="onClientFormCreatedHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

Gets or sets a value indicating the client-side event handler that is called when the scheduler is about to execute a navigation command.

C#
[ClientControlEvent]
[ClientPropertyName("navigationCommand")]
public string OnClientNavigationCommand { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function clientNavigationCommandHandler(sender, eventArgs)<br />
{<br />
       if (eventArgs.get_command() == Telerik.Web.UI.SchedulerNavigationCommand.NavigateToNextPeriod)<br />
       alert("Navigating to next period");
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientNavigationCommand="clientNavigationCommandHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

Gets or sets a value indicating the client-side event handler that is called when a navigation command has been completed.

C#
[ClientControlEvent]
[ClientPropertyName("navigationComplete")]
public string OnClientNavigationComplete { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function clientNavigationCompleteHandler(sender, eventArgs)<br />
{<br />
       if (eventArgs.get_command() == Telerik.Web.UI.SchedulerNavigationCommand.SwitchToDayView)<br />
       alert("Displaying day view");<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnNavigationComplete="clientNavigationCompleteHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

Gets or sets a value indicating the client-side event handler that is called when the recurrence action confirmation dialog has been closed.

C#
[ClientControlEvent]
[ClientPropertyName("recurrenceActionDialogClosed")]
public string OnClientRecurrenceActionDialogClosed { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function onClientRecurrenceActionDialogClosedHandler(sender, eventArgs)<br />
{<br />
       var appointment = eventArgs.get_appointment();<br />
       var editSeries = eventArgs.get_editSeries();<br />
       <br />
       alert("The user has set editSeries to '" + editSeries + "' for appointment '" + appointment.get_subject() + "'");
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientRecurrenceActionDialogClosed="onClientRecurrenceActionDialogClosedHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

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.

C#
[ClientControlEvent]
[ClientPropertyName("recurrenceActionDialogShowing")]
public string OnClientRecurrenceActionDialogShowing { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function onClientRecurrenceActionDialogShowingHandler(sender, eventArgs)<br />
{<br />
       var appointment = eventArgs.get_appointment();<br />
       var action = eventArgs.get_recurrenceAction();<br />
       <br />
       if (action == Telerik.Web.UI.RecurrenceAction.Edit)<br />
       {<br />
           alert("Overriding recurrence action dialog to 'Edit series' for appointment '" + appointment.get_subject() + "'");
           eventArgs.set_cancel(true);<br />
           eventArgs.set_editSeries(true);<br />
       }<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientRecurrenceActionDialogShowing="onClientRecurrenceActionDialogShowingHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

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.

C#
[ClientControlEvent]
[ClientPropertyName("recurrenceExceptionCreating")]
public string OnClientRecurrenceExceptionCreating { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function clientRecurrenceExceptionCreating(sender, eventArgs)<br />
{<br />
       alert("Operation cancelled");<br />
       eventArgs.set_cancel(true);
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientRecurrenceExceptionCreating="clientRecurrenceExceptionCreating"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

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.

C#
[ClientControlEvent]
[ClientPropertyName("recurrenceExceptionsRemoving")]
public string OnClientRecurrenceExceptionsRemoving { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function clientRecurrenceExceptionsRemoving(sender, eventArgs)<br />
{<br />
       alert("Operation cancelled");<br />
       eventArgs.set_cancel(true);
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientRecurrenceExceptionsRemoving="clientRecurrenceExceptionsRemoving"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

Gets or sets a value indicating the client-side event handler that is called when an appointment reminder is about to be dismissed.

C#
[ClientControlEvent]
[ClientPropertyName("reminderDismissing")]
public string OnClientReminderDismissing { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function reminderDismissing(sender, eventArgs)<br />
{<br />
       var appointment = eventArgs.get_appoitment();<br />
       var reminder = eventArgs.get_reminder();<br />
       // ... <br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientReminderDismissing="reminderDismissing"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

Gets or sets a value indicating the client-side event handler that is called when an appointment reminder is about to be snoozed.

C#
[ClientControlEvent]
[ClientPropertyName("reminderSnoozing")]
public string OnClientReminderSnoozing { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function reminderSnoozing(sender, eventArgs)<br />
{<br />
       var appointment = eventArgs.get_appoitment();<br />
       var reminder = eventArgs.get_reminder();<br />
       // ... <br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientReminderSnoozing="reminderSnoozing"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

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.

C#
[ClientControlEvent]
[ClientPropertyName("reminderTriggering")]
public string OnClientReminderTriggering { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function reminderTriggering(sender, eventArgs)<br />
{<br />
       var appointment = eventArgs.get_appoitment();<br />
       var reminder = eventArgs.get_reminder();<br />
       // ... <br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientReminderTriggering="reminderTriggering"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

Gets or sets a value indicating the client-side event handler that is called when a request to the Web Service has failed.

C#
[ClientControlEvent]
[ClientPropertyName("requestFailed")]
public string OnClientRequestFailed { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function clientRequestFailedHandler(sender, eventArgs)<br />
{<br />
       alert("Request failed!");<br />
       eventArgs.set_cancel(true);
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientRequestFailed="clientRequestFailedHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

Gets or sets a value indicating the client-side event handler that is called when a request to the Web Service has succeeded.

C#
[ClientControlEvent]
[ClientPropertyName("requestSuccess")]
public string OnClientRequestSuccess { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function clientRequestSuccessHandler(sender, eventArgs)<br />
{<br />
       alert("Operation code: " + eventArgs.get_result().Code);<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientRequestSuccess="clientRequestSuccessHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

Gets or sets a value indicating the client-side event handler that is called when the scheduler has received resources from the Web Service.

C#
[ClientControlEvent]
[ClientPropertyName("resourcesPopulated")]
public string OnClientResourcesPopulated { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function clientResourcesPopulatedHandler(sender)<br />
{<br />
       alert("Resources loaded");<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientResourcesPopulated="clientResourcesPopulatedHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

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.

C#
[ClientControlEvent]
[ClientPropertyName("resourcesPopulating")]
public string OnClientResourcesPopulating { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function clientResourcesPopulatingHandler(sender, eventArgs)<br />
{<br />
       alert("Resources loading");<br />
       eventArgs.get_schedulerInfo().CustomProperty = "My Data";
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientResourcesPopulating="clientResourcesPopulatingHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

Gets or sets the on client time slot click.

C#
[ClientControlEvent]
[ClientPropertyName("timeSlotClick")]
public string OnClientTimeSlotClick { get; set; }
Property Value:

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.

C#
[ClientControlEvent]
[ClientPropertyName("timeSlotContextMenu")]
public string OnClientTimeSlotContextMenu { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function onClientTimeSlotContextMenuHandler(sender, eventArgs)<br />
{<br />
       var time = eventArgs.get_time();<br />
       // ... <br />
       eventArgs.get_domEvent().preventDefault(); // Prevent displaying the browser menu<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientTimeSlotContextMenu="onClientTimeSlotContextMenuHandler"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

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.

C#
[ClientControlEvent]
[ClientPropertyName("timeSlotContextMenuItemClicked")]
public string OnClientTimeSlotContextMenuItemClicked { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function appointmentTimeSlotMenuItemClicked(sender, eventArgs)<br />
{<br />
       var timeSlot = eventArgs.get_slot();<br />
       var clickedItem = eventArgs.get_item();<br />
       // ... <br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientTimeSlotContextMenuItemClicked="appointmentTimeSlotMenuItemClicked"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

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.

C#
[ClientControlEvent]
[ClientPropertyName("timeSlotContextMenuItemClicking")]
public string OnClientTimeSlotContextMenuItemClicking { get; set; }
Property Value:

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.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function appointmentTimeSlotMenuItemClicking(sender, eventArgs)<br />
{<br />
       var timeSlot = eventArgs.get_slot();<br />
       var clickedItem = eventArgs.get_item();<br />
       // ... <br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadScheduler ID="RadScheduler1"<br />
runat="server"<br />
    <strong>OnClientTimeSlotContextMenuItemClicking="appointmentTimeSlotMenuItemClicking"</strong>&gt;<br />
....<br />
&lt;/telerik:RadScheduler&gt;</p>

Gets or sets a value specifying the way RadScheduler should behave when its content overflows its dimensions.

C#
[ClientControlProperty]
[ClientPropertyName("overflowBehavior")]
public OverflowBehavior OverflowBehavior { get; set; }
Property Value:

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.

C#
[Browsable(false)]
public SchedulerProviderBase Provider { get; set; }
Property Value:

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.

C#
[Browsable(false)]
public object ProviderContext { get; protected set; }
Property Value:

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.

C#
[PersistenceMode(PersistenceMode.Attribute)]
public string ProviderName { get; set; }
Property Value:

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.

C#
[ClientControlProperty]
[ClientPropertyName("readOnly")]
public bool ReadOnly { get; set; }
Property Value:

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.

C#
[Browsable(false)]
public virtual bool RecurrenceSupport { get; }
Property Value:

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.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public ReminderSettings Reminders { get; }
Property Value:

The reminders.

Gets a boolean value that indicates if reminders support has been configured for this instance of RadScheduler.

C#
[Browsable(false)]
public virtual bool RemindersSupport { get; }
Property Value:

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.

C#
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(SchedulerResourceContainer))]
public ITemplate ResourceHeaderTemplate { get; set; }
Property Value:

The resource header template.

A collection of all resources loaded by RadScheduler.

C#
[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.

C#
[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.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public ResourceTypeCollection ResourceTypes { get; }

Gets or sets the width of each row header.

C#
public Unit RowHeaderWidth { get; set; }
Property Value:

The width of each row header

Gets or sets the height of RadScheduler rows.

C#
[ClientControlProperty]
[ClientPropertyName("rowHeight")]
public Unit RowHeight { get; set; }
Property Value:

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.

C#
public DateTime SelectedDate { get; set; }

Gets or sets the current view type.

C#
[ClientControlProperty]
[ClientPropertyName("selectedView")]
public SchedulerViewType SelectedView { get; set; }
Property Value:

One of the SchedulerViewType values. The default is DayView.

Gets or sets a value indicating whether to render the all day pane.

C#
[ClientControlProperty]
public bool ShowAllDayRow { get; set; }
Property Value:

true if the header is rendered; otherwise, false.

Gets or sets a value indicating whether to render date headers for the current view.

C#
public bool ShowDateHeaders { get; set; }
Property Value:

true if the date headers for the current view are rendered; otherwise, false.

Gets or sets a value indicating whether to render the footer.

C#
public bool ShowFooter { get; set; }
Property Value:

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.

C#
[ClientControlProperty]
public bool ShowFullTime { get; set; }
Property Value:

true if showing the complete day (24-hour view); otherwise, false.

Gets or sets a value indicating whether to render the header.

C#
public bool ShowHeader { get; set; }
Property Value:

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.

C#
public bool ShowHoursColumn { get; set; }
Property Value:

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..

C#
public bool ShowNavigationPane { get; set; }
Property Value:

true if the header is rendered; otherwise, false.

Gets or sets a value indicating whether to render resource headers for the current view.

C#
public bool ShowResourceHeaders { get; set; }
Property Value:

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.

C#
public bool ShowViewTabs { get; set; }
Property Value:

true if the tabs is rendered; otherwise, false.

Gets or sets a value indicating whether "advanced" mode is the default edit mode.

C#
[ClientControlProperty]
[ClientPropertyName("_startEditingInAdvancedForm")]
public bool StartEditingInAdvancedForm { get; set; }
Property Value:

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.

C#
[ClientControlProperty]
[ClientPropertyName("_startInsertingInAdvancedForm")]
public bool StartInsertingInAdvancedForm { get; set; }
Property Value:

true if the "advanced" mode is the default insert mode; false if "inline" is default insert mode. The default value is false.

C#
protected override bool SupportsRenderingMode { get; }

Overrides: RadDataBoundControl.SupportsRenderingMode

C#
protected override HtmlTextWriterTag TagKey { get; }

Overrides: WebControl.TagKey

Gets or sets the number of rows each time label spans.

C#
[ClientControlProperty]
public int TimeLabelRowSpan { get; set; }
Property Value:

The number of rows each time label spans. The default value is 2

Gets the timeline view.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public TimelineViewSettings TimelineView { get; }
Property Value:

The timeline view.

Gets a collection of RadSchedulerContextMenu objects that represent the time slot context menus of the RadScheduler control.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public RadSchedulerContextMenuCollection TimeSlotContextMenus { get; }

Gets the time slot context menu settings.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public ContextMenuSettings TimeSlotContextMenuSettings { get; }
Property Value:

The time slot context menu settings.

Gets or sets the current time zone RadScheduler ins operating in

C#
public string TimeZoneID { get; set; }
Property Value:

The time zone ID.

Gets or sets the time zone offset to use when displaying appointments.

C#
public TimeSpan TimeZoneOffset { get; set; }
Property Value:

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.

C#
public bool TimeZonesEnabled { get; }
Property Value:

The time zones enabled.

Gets a collection of Appointment objects that represent individual appointments in the RadScheduler control.

C#
[Browsable(false)]
public TimeZoneProviderBase TimeZonesProvider { get; }
Property Value:

A collection of the currently loaded Appointment objects.

Gets the unique, hierarchically qualified identifier for the server control.

C#
[ClientControlProperty]
[ClientPropertyName("_uniqueId")]
public override string UniqueID { get; }
Property Value:

The fully qualified identifier for the server control.

Overrides: Control.UniqueID

Gets or sets the name of the validation group to be used for the integrated validation controls.

C#
[ClientControlProperty]
[ClientPropertyName("validationGroup")]
public string ValidationGroup { get; set; }

Returns visible end date of the current view.

C#
[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.

C#
[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.

C#
[Browsable(false)]
public TimeSpan VisualTimeZoneOffset { get; set; }
Property Value:

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.

C#
protected DateTime VisualToday { get; }

Gets the web service to be used for binding this instance of RadScheduler.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public SchedulerWebServiceSettings WebServiceSettings { get; }
Property Value:

The web service settings.

Gets the WeekView settings.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public WeekViewSettings WeekView { get; }
Property Value:

The WeekView.

Gets or sets the time used to denote the end of the work day.

C#
public TimeSpan WorkDayEndTime { get; set; }
Property Value:

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.

C#
public TimeSpan WorkDayStartTime { get; set; }
Property Value:

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.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public YearViewSettings YearView { get; }
Property Value:

The year view.

Methods

C#
protected override void AddAttributesToRender(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: RadDataBoundControl.AddAttributesToRender(HtmlTextWriter)

C#
protected void ClearChildControls()

Creates a new appointment instance. This method is used internally by RadScheduler and can be used by custom appointment providers.

C#
public virtual Appointment CreateAppointment()
Returns:

Appointment

A new appointment instance.

Implements: IAppointmentFactory.CreateAppointment()

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.

C#
protected override void CreateChildControls()

Overrides: Control.CreateChildControls()

C#
protected void CreateChildControls(bool bindFromDataSource)
Parameters:bindFromDataSourcebool
C#
protected override Style CreateControlStyle()
Returns:

Style

Overrides: WebControl.CreateControlStyle()

C#
protected static WebControl CreateSpacer(RadScheduler scheduler)
Parameters:schedulerRadSchedulerReturns:

WebControl

C#
protected static WebControl CreateWrapper(RadScheduler scheduler)
Parameters:schedulerRadSchedulerReturns:

WebControl

Deletes the appointment or the recurrence series it is part of.

C#
public void DeleteAppointment(Appointment appointmentToDelete, bool deleteSeries)
Parameters:appointmentToDeleteAppointment

The appointment to delete.

deleteSeriesbool

if 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.

C#
protected override void DescribeClientEvents(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor

Overrides: RadDataBoundControl.DescribeClientEvents(IScriptDescriptor)

C#
protected override void DescribeClientProperties(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor

Overrides: RadDataBoundControl.DescribeClientProperties(IScriptDescriptor)

C#
protected override void DescribeComponent(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor

Overrides: RadDataBoundControl.DescribeComponent(IScriptDescriptor)

Updates the appointment by dismissing its reminder.

C#
public void DismissAppointmentReminder(Appointment appointmentToUpdate, Appointment originalAppointment)
Parameters:appointmentToUpdateAppointment

The appointment to update.

originalAppointmentAppointment

The original appointment.

Converts a date time object from client date format to UTC using the TimeZoneOffset property.

C#
public virtual DateTime DisplayToUtc(DateTime displayDate)
Parameters:displayDateDateTime

The date to convert. Must be in client format.

Returns:

DateTime

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.

Example:
cs-api-definition
Appointment appointment = RadScheduler1.Appointments[0];
DateTime startInClientFormat = DateTime.Parse(TextBox1.Text);
appointment.Start = RadScheduler1.DisplayToUtc(startInClientFormat);
RadScheduler1.Update(appointment);
C#
protected override void EnsureDataBound()

Overrides: BaseDataBoundControl.EnsureDataBound()

C#
public static string ExportToICalendar(Appointment appointment, bool hasTimeZones)
Parameters:appointmentAppointmenthasTimeZonesboolReturns:

string

Exports an appointment to iCalendar format.

C#
public static string ExportToICalendar(Appointment appointment, TimeSpan timeZoneOffset)
Parameters:appointmentAppointment

The appointment which should be exported.

timeZoneOffsetTimeSpan

The time zone offset to apply to the exported appointments.

Returns:

string

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.

C#
public static string ExportToICalendar(Appointment appointment)
Parameters:appointmentAppointment

The appointment which should be exported.

Returns:

string

A string containing the appointment in iCalendar format.

The return value should be saved as a text file with an "ics" extension.

C#
public static string ExportToICalendar(AppointmentCollection appointments, bool hasTimeZones)
Parameters:appointmentsAppointmentCollectionhasTimeZonesboolReturns:

string

Exports the specified appointments to iCalendar format.

C#
public static string ExportToICalendar(AppointmentCollection appointments, TimeSpan timeZoneOffset)
Parameters:appointmentsAppointmentCollection

A collection of appointments which should be exported.

timeZoneOffsetTimeSpan

The time zone offset to apply to the exported appointments.

Returns:

string

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.

C#
public static string ExportToICalendar(AppointmentCollection appointments)
Parameters:appointmentsAppointmentCollection

A collection of appointments which should be exported.

Returns:

string

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.

C#
public static string ExportToICalendar(IEnumerable<Appointment> appointments, TimeSpan timeZoneOffset)
Parameters:appointmentsIEnumerable<Appointment>

An IEnumerable of appointments which should be exported.

timeZoneOffsetTimeSpan

The time zone offset to apply to the exported appointments.

Returns:

string

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.

C#
public static string ExportToICalendar(IEnumerable<Appointment> appointments)
Parameters:appointmentsIEnumerable<Appointment>

An IEnumerable of appointments which should be exported.

Returns:

string

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.

C#
public void ExportToPdf()

Returns the results of a callback event that targets a control.

C#
public string GetCallbackResult()
Returns:

string

The result of the callback.

Implements: ICallbackEventHandler.GetCallbackResult()

C#
protected override IEnumerable<ScriptReference> GetScriptReferences()
Returns:

IEnumerable<ScriptReference>

Overrides: RadDataBoundControl.GetScriptReferences()

Retrieves a TimeSlot object from its client-side index

C#
public ISchedulerTimeSlot GetTimeSlotFromIndex(string index)
Parameters:indexstring

String representation of the TimeSlot's index

Returns:

ISchedulerTimeSlot

The TimeSlot that corresponds to the passed index

Hides the active insert or edit form (if any).

C#
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.

C#
public void InsertAppointment(Appointment appointmentToInsert)
Parameters:appointmentToInsertAppointment

The appointment to insert.

C#
protected override void LoadControlState(object savedState)
Parameters:savedStateobject

Overrides: Control.LoadControlState(object)

Executed when post data is loaded from the request

C#
protected override bool LoadPostData(string postDataKey, NameValueCollection postCollection)
Parameters:postDataKeystringpostCollectionNameValueCollectionReturns:

bool

Overrides: RadDataBoundControl.LoadPostData(string, NameValueCollection)

C#
protected override void LoadViewState(object savedState)
Parameters:savedStateobject

Overrides: DataBoundControl.LoadViewState(object)

C#
protected virtual bool OnAppointmentCancelingEdit(Appointment appointment, SchedulerFormContainer container)
Parameters:appointmentAppointmentcontainerSchedulerFormContainerReturns:

bool

C#
protected virtual void OnAppointmentClick(Appointment clickedAppointment)
Parameters:clickedAppointmentAppointment
C#
protected virtual void OnAppointmentCommand(SchedulerAppointmentContainer container, string commandName, object commandArgument)
Parameters:containerSchedulerAppointmentContainercommandNamestringcommandArgumentobject
C#
protected virtual void OnAppointmentContextMenuItemClicked(Appointment appointment, RadMenuItem menuItem)
Parameters:appointmentAppointmentmenuItemRadMenuItem
C#
protected virtual bool OnAppointmentContextMenuItemClicking(Appointment appointment, RadMenuItem menuItem)
Parameters:appointmentAppointmentmenuItemRadMenuItemReturns:

bool

C#
protected virtual void OnAppointmentCreated(Appointment appointment, SchedulerAppointmentContainer container)
Parameters:appointmentAppointmentcontainerSchedulerAppointmentContainer
C#
protected virtual void OnAppointmentDataBound(Appointment appointment)
Parameters:appointmentAppointment
C#
protected virtual bool OnAppointmentDelete(AppointmentDeleteEventArgs args)
Parameters:argsAppointmentDeleteEventArgsReturns:

bool

C#
protected virtual bool OnAppointmentInsert(AppointmentInsertEventArgs args)
Parameters:argsAppointmentInsertEventArgsReturns:

bool

C#
protected virtual bool OnAppointmentsPopulating(AppointmentsPopulatingEventArgs args)
Parameters:argsAppointmentsPopulatingEventArgsReturns:

bool

C#
protected virtual bool OnAppointmentUpdate(AppointmentUpdateEventArgs args)
Parameters:argsAppointmentUpdateEventArgsReturns:

bool

C#
protected override bool OnBubbleEvent(object source, EventArgs args)
Parameters:sourceobjectargsEventArgsReturns:

bool

Overrides: Control.OnBubbleEvent(object, EventArgs)

C#
protected override void OnDataPropertyChanged()

Overrides: DataBoundControl.OnDataPropertyChanged()

C#
protected override void OnDataSourceViewChanged(object sender, EventArgs e)
Parameters:senderobjecteEventArgs

Overrides: DataBoundControl.OnDataSourceViewChanged(object, EventArgs)

C#
protected virtual void OnFormCreated(Appointment appointment, SchedulerFormContainer container)
Parameters:appointmentAppointmentcontainerSchedulerFormContainer
C#
protected virtual bool OnFormCreating(Appointment appointment, SchedulerFormMode mode)
Parameters:appointmentAppointmentmodeSchedulerFormModeReturns:

bool

C#
protected override void OnInit(EventArgs e)
Parameters:eEventArgs

Overrides: RadDataBoundControl.OnInit(EventArgs)

C#
protected virtual bool OnOccurrenceDelete(Appointment masterAppointment, Appointment occurrenceAppointment)
Parameters:masterAppointmentAppointmentoccurrenceAppointmentAppointmentReturns:

bool

C#
protected virtual void OnPdfExporting(SchedulerPdfExportingEventArgs args)
Parameters:argsSchedulerPdfExportingEventArgs
C#
protected override void OnPreRender(EventArgs e)
Parameters:eEventArgs

Overrides: RadDataBoundControl.OnPreRender(EventArgs)

C#
protected virtual bool OnRecurrenceExceptionCreated(Appointment masterAppointment, Appointment exceptionAppointment, Appointment occurrenceAppointment)
Parameters:masterAppointmentAppointmentexceptionAppointmentAppointmentoccurrenceAppointmentAppointmentReturns:

bool

C#
protected virtual void OnResourceHeaderCreated(SchedulerResourceContainer resourceContainer)
Parameters:resourceContainerSchedulerResourceContainer
C#
protected virtual bool OnResourcesPopulating(ResourcesPopulatingEventArgs args)
Parameters:argsResourcesPopulatingEventArgsReturns:

bool

C#
protected virtual bool OnSchedulerNavigationCommand(SchedulerNavigationCommand command, DateTime selectedDate)
Parameters:commandSchedulerNavigationCommandselectedDateDateTimeReturns:

bool

C#
protected virtual bool OnSchedulerNavigationCommand(SchedulerNavigationCommand command)
Parameters:commandSchedulerNavigationCommandReturns:

bool

C#
protected virtual void OnSchedulerNavigationComplete(SchedulerNavigationCommand command)
Parameters:commandSchedulerNavigationCommand
C#
protected virtual void OnTimeSlotContextMenuItemClicked(ISchedulerTimeSlot timeSlot, RadMenuItem menuItem, ISchedulerTimeSlot startSlot, ISchedulerTimeSlot endSlot)
Parameters:timeSlotISchedulerTimeSlotmenuItemRadMenuItemstartSlotISchedulerTimeSlotendSlotISchedulerTimeSlot
C#
protected virtual bool OnTimeSlotContextMenuItemClicking(ISchedulerTimeSlot timeSlot, RadMenuItem menuItem, ISchedulerTimeSlot startSlot, ISchedulerTimeSlot endSlot)
Parameters:timeSlotISchedulerTimeSlotmenuItemRadMenuItemstartSlotISchedulerTimeSlotendSlotISchedulerTimeSlotReturns:

bool

C#
protected virtual void OnTimeSlotCreated(ISchedulerTimeSlot timeSlot)
Parameters:timeSlotISchedulerTimeSlot
C#
protected override void PerformSelect()

Overrides: DataBoundControl.PerformSelect()

C#
protected override RenderMode PreferredRenderMode(RenderModeBrowserAdaptor browser)
Parameters:browserRenderModeBrowserAdaptorReturns:

RenderMode

Overrides: RadDataBoundControl.PreferredRenderMode(RenderModeBrowserAdaptor)

Prepares the specified appointment for editing.

C#
public Appointment PrepareToEdit(Appointment appointmentToEdit, bool editSeries)
Parameters:appointmentToEditAppointment

The appointment to edit.

editSeriesbool

if set to true [edit series].

Returns:

Appointment

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.

Example:
cs-api-definition
Appointment occurrence = RadScheduler1.Appointments[0];
Appointment recurrenceException = RadScheduler1.PrepareToEdit(occurrence, false);

recurrenceException.Subject = "This is a recurrence exception";

RadScheduler1.UpdateAppointment(recurrenceException);

Processes a callback event that targets a control.

C#
public void RaiseCallbackEvent(string eventArgument)
Parameters:eventArgumentstring

A string that represents an event argument to pass to the event handler.

Implements: ICallbackEventHandler.RaiseCallbackEvent(string)

C#
protected virtual void RaisePostBackEvent(string eventArgument)
Parameters:eventArgumentstring

Rebinds this instance.

C#
public void Rebind()

Removes the associated recurrence exceptions through the provider.

C#
public void RemoveRecurrenceExceptions(Appointment master)
Parameters:masterAppointment

The recurrence master.

C#
protected override void RenderContents(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: RadDataBoundControl.RenderContents(HtmlTextWriter)

C#
protected override object SaveControlState()
Returns:

object

Overrides: Control.SaveControlState()

C#
protected override object SaveViewState()
Returns:

object

Overrides: DataBoundControl.SaveViewState()

Shows the advanced edit form.

C#
public void ShowAdvancedEditForm(Appointment appointmentToEdit, bool editSeries)
Parameters:appointmentToEditAppointment

The appointment which is edited. Its properties are used to populate the edit form.

editSeriesbool

A boolean value indicating whether to edit the recurring series.

Shows the advanced edit form.

C#
public void ShowAdvancedEditForm(Appointment appointmentToEdit)
Parameters:appointmentToEditAppointment

The appointment which is edited. Its properties are used to populate the edit form.

Shows the advansed insert form.

C#
public void ShowAdvancedInsertForm(DateTime showAt)
Parameters:showAtDateTime

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

C#
public void ShowAlldayInlineInsertForm(DateTime showAt)
Parameters:showAtDateTime

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.

C#
public void ShowInlineEditForm(Appointment appointmentToEdit, bool editSeries)
Parameters:appointmentToEditAppointment

The appointment which is edited. Its properties are used to populate the edit form.

editSeriesbool

A boolean value indicating whether to edit the recurring series.

Shows the inline edit form.

C#
public void ShowInlineEditForm(Appointment appointmentToEdit)
Parameters:appointmentToEditAppointment

The appointment which is edited. Its properties are used to populate the edit form.

Shows the inline insert form.

C#
public void ShowInlineInsertForm(DateTime showAt)
Parameters:showAtDateTime

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.

C#
public void ShowInlineInsertForm(ISchedulerTimeSlot timeSlot)
Parameters:timeSlotISchedulerTimeSlot

The time slot object where the insert form will be shown

C#
protected virtual void TrackNavigationCommand(SchedulerNavigationCommandEventArgs e)
Parameters:eSchedulerNavigationCommandEventArgs
C#
protected virtual void TrackPdfExport()
C#
protected override void TrackViewState()

Overrides: DataBoundControl.TrackViewState()

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.

C#
public void UpdateAppointment(Appointment appointmentToUpdate, Appointment originalAppointment)
Parameters:appointmentToUpdateAppointment

The appointment to update.

originalAppointmentAppointment

The 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.

Example:
cs-api-definition
Appointment occurrence = RadScheduler1.Appointments[0];
Appointment recurrenceException = RadScheduler1.PrepareToEdit(occurrence, false);

Appointment modifiedAppointment = recurrenceException.Clone();
modifiedAppointment.Subject = "This is a recurrence exception";

RadScheduler1.UpdateAppointment(modifiedAppointment, recurrenceException);

Updates the specified appointment and persists the changes through the provider.

C#
public void UpdateAppointment(Appointment appointmentToUpdate)
Parameters:appointmentToUpdateAppointment

The appointment to update.

This method can be used, along with PrepareToEdit(Appointment, bool) to create and persist a recurrence exceptions.

Example:
cs-api-definition
Appointment occurrence = RadScheduler1.Appointments[0];
Appointment recurrenceException = RadScheduler1.PrepareToEdit(occurrence, false);

recurrenceException.Subject = "This is a recurrence exception";

RadScheduler1.UpdateAppointment(recurrenceException);

Returns the UTC date that corresponds to midnight on the client for the selected date.

C#
public DateTime UtcDayStart(DateTime utcDate)
Parameters:utcDateDateTime

Client's date and time in UTC.

Returns:

DateTime

The UTC date that corresponds to midnight on the client for the selected date.

Converts a date time object from UTC to client date format using the TimeZoneOffset property.

C#
public virtual DateTime UtcToDisplay(DateTime utcDate)
Parameters:utcDateDateTime

The date to convert. Must be in UTC format.

Returns:

DateTime

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.

Example:
cs-api-definition
Appointment appointment = RadScheduler1.Appointments[0];
Label1.Text = RadScheduler1.UtcToDisplay(appointment.Start).ToString()

Events

Occurs when the Cancel button of an edit form is clicked, but before RadScheduler exits edit mode.

C#
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.

Example:
cs-api-definition
void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
{
if (e.Container.Mode == SchedulerFormMode.Insert)
{
TextBox startDate = (TextBox) e.Container.FindControl("StartDate");
if (startDate.Text == String.Empty)
{
e.Cancel = true;
}
}
}

Occurs when an appointment has been clicked.

C#
public event AppointmentClickEventHandler AppointmentClick

You can use this event to perform additional actions when an appointment has been clicked.

Example:
cs-api-definition
void RadScheduler1_AppointmentClick(object sender, SchedulerEventArgs e)
{
Response.Redirect("Page.aspx);
}

Occurs when a button is clicked within the appointment template.

C#
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.

Example:
cs-api-definition
void RadScheduler1_AppointmentCommand(object sender, AppointmentCommandEventArgs e)
{
if (e.CommandName == "Delete")
{
Delete(e.Container.Appointment);
}
}

Occurs after an appointment context menu item is clicked.

C#
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.

C#
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.

C#
public event AppointmentCreatedEventHandler AppointmentCreated

You can use this event to modify the appointment template before data binding.

Example:
cs-api-definition
void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e)
{
Label testLabel = (Label) e.Container.FindControl("Test");
testLabel.Text = "Test";
}

Occurs when an appointment has been added to the Appointments collection from the data source.

C#
public event AppointmentDataBoundEventHandler AppointmentDataBound

You can use this event to make adjustments to the appointments as they are being loaded.

Example:
cs-api-definition
void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
{
e.Appointment.Start = e.Appointment.Start.AddHours(1);
}

Occurs when an appointment is about to be deleted from the database through the provider.

C#
public event AppointmentDeleteEventHandler AppointmentDelete

The delete operation can be cancelled by setting the Cancel property of SchedulerCancelEventArgs to true.

Example:
cs-api-definition
void RadScheduler1_AppointmentDelete(object sender, SchedulerCancelEventArgs e)
{
if (e.Appointment.Attributes["ReadOnly"] == "true")
{
e.Cancel = true;
}
}

Occurs when an appointment is about to be inserted in the database through the provider.

C#
public event AppointmentInsertEventHandler AppointmentInsert

The insert operation can be cancelled by setting the Cancel property of SchedulerCancelEventArgs to true.

Example:
cs-api-definition
void RadScheduler1_AppointmentInsert(object sender, SchedulerCancelEventArgs e)
{
if (e.Appointment.Subject == String.Empty)
{
e.Cancel = true;
}
}

Occurs when the scheduler is about to request appointments from the provider / data source.

C#
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.

Example:
cs-api-definition
void RadScheduler1_AppointmentsPopulating(object sender, AppointmentsPopulatingEventArgs e)
{
MySchedulerInfo info = new MySchedulerInfo(e.SchedulerInfo); // Copy existing data
info.UserID = 42;

e.ScheduulerInfo = info;
}

Occurs when an appointment is about to be updated through the provider.

C#
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.

Example:
cs-api-definition
void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)
{
e.ModifiedAppointment.End = e.ModifiedAppointment.End.AddHours(1);
}

Occurs when an insert/edit form has been created.

C#
public event SchedulerFormCreatedEventHandler FormCreated

You can use this event to make modifications to the form template.

Example:
cs-api-definition
void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
{
if (e.Container.Mode == SchedulerFormMode.Insert)
{
Label startDate = (Label) e.Container.FindControl("StartDate");
startDate.Text = e.Container.Appointment.Start;
}
}

Occurs when an insert/edit form is being created.

C#
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.

Example:
cs-api-definition
void RadScheduler1_FormCreating(object sender, SchedulerFormCreatingEventArgs e)
{
if (e.Mode == SchedulerFormMode.Insert)
{
e.Cancel = true;
}
}

Occurs when the RadScheduler is about to execute a navigation command.

C#
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.

Example:
cs-api-definition
void RadScheduler1_NavigationCommand(object sender, SchedulerNavigationCommandEventArgs e)
{
if (e.Command == SchedulerNavigationCommand.NavigateToNextPeriod)
{
e.Cancel = true;
}
}

Occurs when a navigation command has been executed.

C#
public event SchedulerNavigationCompleteEventHandler NavigationComplete

You can use this event to perform custom actions when a navigation command has been processed.

Example:
cs-api-definition
void RadScheduler1_NavigationComplete(object sender, SchedulerNavigationCompleteEventArgs e)
{
Label1.Text = RadScheduler1.SelectedDate;
}

Occurs when an occurrence is about to be removed.

C#
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.

Example:
cs-api-definition
void RadScheduler1_OccurrenceDelete(object sender, OccurrenceDeleteEventArgs e)
{
e.Cancel = true;
}

Fires when a scheduler is exporting.

C#
public event SchedulerPdfExportingEventHandler PdfExporting

Occurs when an appointment that represents a recurrence exception is about to be created.

C#
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.

Example:
cs-api-definition
void RadScheduler1_RecurrenceExceptionCreated(object sender, RecurrenceExceptionCreatedEventArgs e)
{
e.Cancel = true;
}

Occurs when a reminder has been dismissed.

C#
public event ReminderDismissEventHandler ReminderDismiss

The ReminderSnoozeEventArgs contain:

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.

Example:
cs-api-definition
void RadScheduler1_ReminderDismiss(object sender, ReminderDismissEventArgs e)
{
e.Cancel = true;
}

Occurs when a reminder has been snoozed.

C#
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.

Example:
cs-api-definition
void RadScheduler1_ReminderSnooze(object sender, ReminderSnoozeEventArgs e)
{
e.Cancel = true;
}

Occurs when a resource header has been created.

C#
public event ResourceHeaderCreatedEventHandler ResourceHeaderCreated

You can use this event to make modifications to the resouce headers.

Example:
cs-api-definition
void RadScheduler1_ResourceHeaderCreated(object sender, ResourceHeaderCreatedEventArgs e)
{
e.Container.Controls.Add(new LiteralControl("Test"));
}

Occurs when the scheduler is about to request resources from the Web Service.

C#
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.

Example:
cs-api-definition
void RadScheduler1_ResourcesPopulating(object sender, ResourcesPopulatingEventArgs e)
{
e.Cancel = true;
}

Occurs after a time slot context menu item is clicked.

C#
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.

C#
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.

C#
public event TimeSlotCreatedEventHandler TimeSlotCreated

You can use this event to make modifications to the time slots.

Example:
cs-api-definition
void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
{
e.TimeSlot.CssClass = "holidayTimeSlot";
}
In this article
DefinitionConstructorsRadScheduler()PropertiesAdvancedEditTemplateAdvancedFormAdvancedInsertTemplateAgendaViewAllowDeleteAllowEditAllowInsertAppointmentComparerAppointmentContextMenusAppointmentContextMenuSettingsAppointmentFactoryAppointmentsAppointmentStyleModeAppointmentTemplateColumnWidthCssClassFormatStringCultureCustomAttributeNamesDataDescriptionFieldDataEndFieldDataKeyFieldDataRecurrenceFieldDataRecurrenceParentKeyFieldDataReminderFieldDataSourceIDDataStartFieldDataSubjectFieldDataTimeZoneIdFieldDayEndTimeDayStartTimeDayViewDisplayDeleteConfirmationDisplayRecurrenceActionDialogOnMoveEditFormDateFormatEditFormTimeFormatEditingRecurringSeriesEnableAdvancedFormEnableCustomAttributeEditingEnableDatePickerEnableDescriptionFieldEnableExactTimeRenderingEnableRecurrenceSupportEnableResourceEditingExportSettingsFirstDayOfWeekGroupByGroupingDirectionHasCustomProviderHasDataSourceHasDescriptionFieldHeightHoursPanelTimeFormatInAdvancedModeInlineEditTemplateInlineInsertTemplateIsBoundUsingODataLastDayOfWeekLocalizationLocalizationPathMaximumRecurrenceCandidatesMinimumInlineFormHeightMinimumInlineFormWidthMinutesPerRowMonthViewMultiDayViewNumberOfHoveredRowsODataDataSourceIDOnClientAppointmentClickOnClientAppointmentContextMenuOnClientAppointmentContextMenuItemClickedOnClientAppointmentContextMenuItemClickingOnClientAppointmentCreatedOnClientAppointmentDataBoundOnClientAppointmentDeletingOnClientAppointmentDoubleClickOnClientAppointmentEditingOnClientAppointmentInsertingOnClientAppointmentMoveEndOnClientAppointmentMoveStartOnClientAppointmentMovingOnClientAppointmentResizeEndOnClientAppointmentResizeStartOnClientAppointmentResizingOnClientAppointmentSerializedOnClientAppointmentsPopulatedOnClientAppointmentsPopulatingOnClientAppointmentWebServiceDeletingOnClientAppointmentWebServiceInsertingOnClientAppointmentWebServiceUpdatingOnClientDataBoundOnClientFormCreatedOnClientNavigationCommandOnClientNavigationCompleteOnClientRecurrenceActionDialogClosedOnClientRecurrenceActionDialogShowingOnClientRecurrenceExceptionCreatingOnClientRecurrenceExceptionsRemovingOnClientReminderDismissingOnClientReminderSnoozingOnClientReminderTriggeringOnClientRequestFailedOnClientRequestSuccessOnClientResourcesPopulatedOnClientResourcesPopulatingOnClientTimeSlotClickOnClientTimeSlotContextMenuOnClientTimeSlotContextMenuItemClickedOnClientTimeSlotContextMenuItemClickingOverflowBehaviorProviderProviderContextProviderNameReadOnlyRecurrenceSupportRemindersRemindersSupportResourceHeaderTemplateResourcesResourceStylesResourceTypesRowHeaderWidthRowHeightSelectedDateSelectedViewShowAllDayRowShowDateHeadersShowFooterShowFullTimeShowHeaderShowHoursColumnShowNavigationPaneShowResourceHeadersShowViewTabsStartEditingInAdvancedFormStartInsertingInAdvancedFormSupportsRenderingModeTagKeyTimeLabelRowSpanTimelineViewTimeSlotContextMenusTimeSlotContextMenuSettingsTimeZoneIDTimeZoneOffsetTimeZonesEnabledTimeZonesProviderUniqueIDValidationGroupVisibleRangeEndVisibleRangeStartVisualTimeZoneOffsetVisualTodayWebServiceSettingsWeekViewWorkDayEndTimeWorkDayStartTimeYearViewMethodsAddAttributesToRender(HtmlTextWriter)ClearChildControls()CreateAppointment()CreateChildControls()CreateChildControls(bool)CreateControlStyle()CreateSpacer(RadScheduler)CreateWrapper(RadScheduler)DeleteAppointment(Appointment, bool)DescribeClientEvents(IScriptDescriptor)DescribeClientProperties(IScriptDescriptor)DescribeComponent(IScriptDescriptor)DismissAppointmentReminder(Appointment, Appointment)DisplayToUtc(DateTime)EnsureDataBound()ExportToICalendar(Appointment, bool)ExportToICalendar(Appointment, TimeSpan)ExportToICalendar(Appointment)ExportToICalendar(AppointmentCollection, bool)ExportToICalendar(AppointmentCollection, TimeSpan)ExportToICalendar(AppointmentCollection)ExportToICalendar(IEnumerable<Appointment>, TimeSpan)ExportToICalendar(IEnumerable<Appointment>)ExportToPdf()GetCallbackResult()GetScriptReferences()GetTimeSlotFromIndex(string)HideEditForm()InsertAppointment(Appointment)LoadControlState(object)LoadPostData(string, NameValueCollection)LoadViewState(object)OnAppointmentCancelingEdit(Appointment, SchedulerFormContainer)OnAppointmentClick(Appointment)OnAppointmentCommand(SchedulerAppointmentContainer, string, object)OnAppointmentContextMenuItemClicked(Appointment, RadMenuItem)OnAppointmentContextMenuItemClicking(Appointment, RadMenuItem)OnAppointmentCreated(Appointment, SchedulerAppointmentContainer)OnAppointmentDataBound(Appointment)OnAppointmentDelete(AppointmentDeleteEventArgs)OnAppointmentInsert(AppointmentInsertEventArgs)OnAppointmentsPopulating(AppointmentsPopulatingEventArgs)OnAppointmentUpdate(AppointmentUpdateEventArgs)OnBubbleEvent(object, EventArgs)OnDataPropertyChanged()OnDataSourceViewChanged(object, EventArgs)OnFormCreated(Appointment, SchedulerFormContainer)OnFormCreating(Appointment, SchedulerFormMode)OnInit(EventArgs)OnOccurrenceDelete(Appointment, Appointment)OnPdfExporting(SchedulerPdfExportingEventArgs)OnPreRender(EventArgs)OnRecurrenceExceptionCreated(Appointment, Appointment, Appointment)OnResourceHeaderCreated(SchedulerResourceContainer)OnResourcesPopulating(ResourcesPopulatingEventArgs)OnSchedulerNavigationCommand(SchedulerNavigationCommand, DateTime)OnSchedulerNavigationCommand(SchedulerNavigationCommand)OnSchedulerNavigationComplete(SchedulerNavigationCommand)OnTimeSlotContextMenuItemClicked(ISchedulerTimeSlot, RadMenuItem, ISchedulerTimeSlot, ISchedulerTimeSlot)OnTimeSlotContextMenuItemClicking(ISchedulerTimeSlot, RadMenuItem, ISchedulerTimeSlot, ISchedulerTimeSlot)OnTimeSlotCreated(ISchedulerTimeSlot)PerformSelect()PreferredRenderMode(RenderModeBrowserAdaptor)PrepareToEdit(Appointment, bool)RaiseCallbackEvent(string)RaisePostBackEvent(string)Rebind()RemoveRecurrenceExceptions(Appointment)RenderContents(HtmlTextWriter)SaveControlState()SaveViewState()ShowAdvancedEditForm(Appointment, bool)ShowAdvancedEditForm(Appointment)ShowAdvancedInsertForm(DateTime)ShowAlldayInlineInsertForm(DateTime)ShowInlineEditForm(Appointment, bool)ShowInlineEditForm(Appointment)ShowInlineInsertForm(DateTime)ShowInlineInsertForm(ISchedulerTimeSlot)TrackNavigationCommand(SchedulerNavigationCommandEventArgs)TrackPdfExport()TrackViewState()UpdateAppointment(Appointment, Appointment)UpdateAppointment(Appointment)UtcDayStart(DateTime)UtcToDisplay(DateTime)EventsAppointmentCancelingEditAppointmentClickAppointmentCommandAppointmentContextMenuItemClickedAppointmentContextMenuItemClickingAppointmentCreatedAppointmentDataBoundAppointmentDeleteAppointmentInsertAppointmentsPopulatingAppointmentUpdateFormCreatedFormCreatingNavigationCommandNavigationCompleteOccurrenceDeletePdfExportingRecurrenceExceptionCreatedReminderDismissReminderSnoozeResourceHeaderCreatedResourcesPopulatingTimeSlotContextMenuItemClickedTimeSlotContextMenuItemClickingTimeSlotCreated
Not finding the help you need?
Contact Support