New to Telerik UI for WinForms? Start a free 30-day trial

Provides a hosted form editor for an appointment's summary, description, and background.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class SchedulerInplaceEditorControl : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, ISchedulerEditor

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlUserControlSchedulerInplaceEditorControl...

Implements: IBindableComponentIComponentIContainerControlIDisposableIDropTargetISchedulerEditorISynchronizeInvokeIWin32Window...

Constructors

Initializes the appointment edit control and localizes its field labels.

C#
public SchedulerInplaceEditorControl()

Fields

The appointment currently displayed by the editor.

C#
protected IEvent appointment

The manager controlling the current appointment edit session.

C#
protected IEditorManager editorManager

Properties

Returns null because this editor hosts its controls directly instead of exposing a RadElement.

C#
public RadElement EditorElement { get; }

Implements: ISchedulerEditor.EditorElement

Methods

Apply theme to the RadControls

C#
public void ApplyTheme(string themeName)
Parameters:themeNamestring

Loads the appointment values and available backgrounds into the hosted controls.

C#
public void BeginEditorEdit(IEditorManager editorManager, IEvent appointment)
Parameters:editorManagerIEditorManager

The manager controlling the edit session.

appointmentIEvent

The appointment whose values will be edited.

Implements: ISchedulerEditor.BeginEditorEdit(IEditorManager, IEvent)

Clean up any resources being used.

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

true if managed resources should be disposed; otherwise, false.

Overrides: ContainerControl.Dispose(bool)

Ends the edit session.

C#
public bool EndEditorEdit()
Returns:

bool

Implements: ISchedulerEditor.EndEditorEdit()

Populates the background selector from the scheduler's background storage.

C#
protected virtual void LoadBackgrounds()

Repositions child controls after loading when the control uses right-to-left layout.

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

The load event data.

Overrides: UserControl.OnLoad(EventArgs)

Applies the edited summary, description, and background to the appointment. If the appointment is a recurrence occurrence, records it as an exception.

C#
public void Save()

Implements: ISchedulerEditor.Save()