RecurrenceEditor
The RadSchedulerRecurrenceEditor is a lightweight control that encapsulates all of the User Interface elements needed to display and edit RadScheduler recurrence rules.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
[RequiredScript(typeof(jQueryPlugins))]
[RequiredScript(typeof(SchedulerDateTime))]
[ToolboxBitmap(typeof(RadScheduler), "Toolbox.Icons.SchedulerRecurrenceEditor.png")]
[ClientScriptResource("Telerik.Web.UI.RecurrenceEditor", "Telerik.Web.UI.Scheduler.Helpers.DateTime.js")]
[ClientScriptResource("Telerik.Web.UI.RecurrenceEditor", "Telerik.Web.UI.Scheduler.RecurrenceRule.RecurrenceRule.js")]
[ClientScriptResource("Telerik.Web.UI.RecurrenceEditor", "Telerik.Web.UI.Scheduler.RecurrenceEditor.RecurrenceEditor.js")]
[EmbeddedSkin("SchedulerRecurrenceEditor", typeof(RecurrenceEditor))]
[EmbeddedSkin("SchedulerRecurrenceEditor", "Default", typeof(RecurrenceEditor))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Classic, typeof(RecurrenceEditor))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Lightweight, typeof(RecurrenceEditor))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Mobile, typeof(RecurrenceEditor))]
public abstract class RecurrenceEditor : RadWebControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IScriptControl, IControlResolver, IPostBackDataHandler, ISkinnableControl, IControl, IPostBackEventHandler
Inheritance: objectControlWebControlRadWebControlRecurrenceEditor
Derived Classes:
Implements:
Inherited Members
Constructors
public RecurrenceEditor()
Properties
The CssClass property will now be used instead of the former Skin and will be modified in AddAttributesToRender()
protected override string CssClassFormatString { get; }
Overrides:
Gets or sets the selected culture. Localization strings will be loaded based on this value.
public CultureInfo Culture { get; set; }
The culture.
Gets or sets the date format string.
public string DateFormat { get; set; }
The date format string.
The default value of this property is inferred from the Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern property.
The end date of the first occurrence.
public DateTime EndDate { get; set; }
The StartDate and EndDate must be set in order to obtain the recurrence rule.
Gets or sets the first day of the week.
[ClientControlProperty]
public DayOfWeek FirstDayOfWeek { get; set; }
This property is used when building Monthly and Yearly recurrence rules.
protected bool IsRecurring { get; }
Gets the localization.
[PersistenceMode(PersistenceMode.InnerProperty)]
public abstract IRecurrenceEditorStrings Localization { get; }
The localization.
The currently selected recurrence rule.
public RecurrenceRule RecurrenceRule { get; set; }
The currently selected recurrence rule (as text).
public string RecurrenceRuleText { get; set; }
Gets or sets the reference to the calendar that will be used for picking dates. This property allows you to use an existing RadCalendar instance for the RecurrenceEditor date picker.
[Browsable(false)]
public RadCalendar SharedCalendar { get; set; }
The instance of the RadCalendar control if set; otherwise null.
Gets or sets the ID of the calendar that will be used for picking dates. This property allows you to use an existing RadCalendar instance for the RecurrenceEditor date picker.
public string SharedCalendarID { get; set; }
The string ID of the RadCalendar control if set; otherwise String.Empty.
The RecurrenceEditor will look for the RadCalendar instance in a way similar to how ASP.NET validators work. It will not go beyond the current naming container which means that you will not be able to configure a calendar that is inside a control in another naming container. You can still share a calendar, but you will have to pass a direct object reference via the SharedCalendar property.
The start date of the first occurrence.
public DateTime StartDate { get; set; }
The StartDate and EndDate must be set in order to obtain the recurrence rule.
protected override bool SupportsRenderingMode { get; }
Overrides:
protected override HtmlTextWriterTag TagKey { get; }
Overrides:
Gets or sets a value indicating the base z-index of the recurrence editor.
public int ZIndex { get; set; }
An integer value that specifies the desired base z-index. The default value is 2500.
The z-index value is used to position any detachable elements (like RadCalendar pop-ups) over other elements in the form.
Methods
protected override void CreateChildControls()
Overrides:
protected virtual void CreateControls()
protected override void DescribeComponent(IScriptDescriptor descriptor)
Overrides:
Executed when post data is loaded from the request
protected override bool LoadPostData(string postDataKey, NameValueCollection postCollection)
Overrides:
protected void PopulateDropDownDescriptions()
When implemented by a class, enables a server control to process an event raised when a form is posted to the server.
protected override void RenderContents(HtmlTextWriter writer)
Overrides:
protected void SetRecurrenceFrequency(RecurrenceFrequency frequency)