Class
SchedulerDefaultContextMenu

Represents the default context menu shown for RadScheduler elements.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

cs-api-definition
public class SchedulerDefaultContextMenu : RadContextMenu, IComponent, IDisposable, IAnalyticsProvider

Inheritance: objectMarshalByRefObjectComponentRadContextMenuSchedulerDefaultContextMenu

Implements: IAnalyticsProviderIComponentIDisposable

Inherited Members RadContextMenu.Show()RadContextMenu.Show(int, int)RadContextMenu.Show(Point)RadContextMenu.Show(Point, RadDirection)RadContextMenu.Show(Control, int, int)RadContextMenu.Show(Control, Point)RadContextMenu.Show(Control, Point, RadDirection)RadContextMenu.Show(RadItem, int, int)RadContextMenu.Show(RadItem, Point)RadContextMenu.Show(RadItem, Point, RadDirection)RadContextMenu.Show(RadItem, int, RadDirection)RadContextMenu.OnDropDownOpening(CancelEventArgs)RadContextMenu.OnDropDownClosing(CancelEventArgs)RadContextMenu.OnDropDownOpened()RadContextMenu.OnDropDownClosed()RadContextMenu.ItemsRadContextMenu.ThemeNameRadContextMenu.ImageListRadContextMenu.DropDownRadContextMenu.AnimationEnabledRadContextMenu.AnimationFramesRadContextMenu.AnimationTypeRadContextMenu.EnableAnalyticsRadContextMenu.DropDownOpeningRadContextMenu.DropDownClosingRadContextMenu.DropDownOpenedRadContextMenu.DropDownClosedComponent.Dispose()Component.GetService(Type)Component.ToString()Component.CanRaiseEventsComponent.EventsComponent.SiteComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

SchedulerDefaultContextMenu(RadSchedulerElement)

Creates a new instance of the SchedulerDefaultContextMenu class.

Declaration

cs-api-definition
public SchedulerDefaultContextMenu(RadSchedulerElement schedulerElement)

Parameters

schedulerElement

RadSchedulerElement

The RadSchedulerElement this menu is associated with.

Properties

Appointment

Gets the appointment the context menu is opened for.

Declaration

cs-api-definition
public IEvent Appointment { get; }

Property Value

IEvent

CellElement

Gets the SchedulerCellElement the context menu is opened for.

Declaration

cs-api-definition
public SchedulerCellElement CellElement { get; }

Property Value

SchedulerCellElement

DayItem

Gets the menu item for changing the Timescales of a SchedulerTimelineView to day.

Declaration

cs-api-definition
public SchedulerTimescalesMenuItem DayItem { get; }

Property Value

SchedulerTimescalesMenuItem

EditAppointmentItem

Gets the menu item for opening an appointment for edit.

Declaration

cs-api-definition
public SchedulerMenuItem EditAppointmentItem { get; }

Property Value

SchedulerMenuItem

FifteenMinutesItem

Gets the menu item for changing the Timescales of a SchedulerTimelineView to fifteen minutes.

Declaration

cs-api-definition
public SchedulerTimescalesMenuItem FifteenMinutesItem { get; }

Property Value

SchedulerTimescalesMenuItem

HalfHourItem

Gets the menu item for changing the Timescales of a SchedulerTimelineView to thirty minutes.

Declaration

cs-api-definition
public SchedulerTimescalesMenuItem HalfHourItem { get; }

Property Value

SchedulerTimescalesMenuItem

HourItem

Gets the menu item for changing the Timescales of a SchedulerTimelineView to hour.

Declaration

cs-api-definition
public SchedulerTimescalesMenuItem HourItem { get; }

Property Value

SchedulerTimescalesMenuItem

Interval

Gets the selected time interval from the associated RadSchedulerElement if such exist.

Declaration

cs-api-definition
public DateTimeInterval Interval { get; }

Property Value

DateTimeInterval

MonthItem

Gets the menu item for changing the Timescales of a SchedulerTimelineView to month.

Declaration

cs-api-definition
public SchedulerTimescalesMenuItem MonthItem { get; }

Property Value

SchedulerTimescalesMenuItem

NewAppointmentItem

Gets the menu item for adding a new appointment.

Declaration

cs-api-definition
public SchedulerMenuItem NewAppointmentItem { get; }

Property Value

SchedulerMenuItem

NewRecurringItem

Gets the menu item for adding a new recurring appointment.

Declaration

cs-api-definition
public SchedulerMenuItem NewRecurringItem { get; }

Property Value

SchedulerMenuItem

NextViewItem

Gets the menu item for navigating to the next view.

Declaration

cs-api-definition
public SchedulerMenuItem NextViewItem { get; }

Property Value

SchedulerMenuItem

PreviousViewItem

Gets the menu item for navigating to the previous view.

Declaration

cs-api-definition
public SchedulerMenuItem PreviousViewItem { get; }

Property Value

SchedulerMenuItem

ScaleRange10MinutesItem

Gets the menu item for changing the ruler ScaleRange to 10 minutes.

Declaration

cs-api-definition
public SchedulerScaleRangeMenuItem ScaleRange10MinutesItem { get; }

Property Value

SchedulerScaleRangeMenuItem

ScaleRange15MinutesItem

Gets the menu item for changing the ruler ScaleRange to 15 minutes.

Declaration

cs-api-definition
public SchedulerScaleRangeMenuItem ScaleRange15MinutesItem { get; }

Property Value

SchedulerScaleRangeMenuItem

ScaleRange30MinutesItem

Gets the menu item for changing the ruler ScaleRange to 30 minutes.

Declaration

cs-api-definition
public SchedulerScaleRangeMenuItem ScaleRange30MinutesItem { get; }

Property Value

SchedulerScaleRangeMenuItem

ScaleRange5MinutesItem

Gets the menu item for changing the ruler ScaleRange to 5 minutes.

Declaration

cs-api-definition
public SchedulerScaleRangeMenuItem ScaleRange5MinutesItem { get; }

Property Value

SchedulerScaleRangeMenuItem

ScaleRange60MinutesItem

Gets the menu item for changing the ruler ScaleRange to 60 minutes.

Declaration

cs-api-definition
public SchedulerScaleRangeMenuItem ScaleRange60MinutesItem { get; }

Property Value

SchedulerScaleRangeMenuItem

ScaleRange6MinutesItem

Gets the menu item for changing the ruler ScaleRange to 6 minutes.

Declaration

cs-api-definition
public SchedulerScaleRangeMenuItem ScaleRange6MinutesItem { get; }

Property Value

SchedulerScaleRangeMenuItem

SchedulerElement

Gets the scheduler element this menu is associated with.

Declaration

cs-api-definition
public RadSchedulerElement SchedulerElement { get; }

Property Value

RadSchedulerElement

TimeScalesItem

Gets the menu item holding the options for the Timescales of a SchedulerTimelineView

Declaration

cs-api-definition
public SchedulerMenuItem TimeScalesItem { get; }

Property Value

SchedulerMenuItem

WeekItem

Gets the menu item for changing the Timescales of a SchedulerTimelineView to week.

Declaration

cs-api-definition
public SchedulerTimescalesMenuItem WeekItem { get; }

Property Value

SchedulerTimescalesMenuItem

YearItem

Gets the menu item for changing the Timescales of a SchedulerTimelineView to year.

Declaration

cs-api-definition
public SchedulerTimescalesMenuItem YearItem { get; }

Property Value

SchedulerTimescalesMenuItem

Methods

BuildMenuItemsTree()

Adds all menu items and sub items to the menu.

Declaration

cs-api-definition
protected virtual void BuildMenuItemsTree()

CreateMenuItems()

Creates the menu items and sub items for the menu.

Declaration

cs-api-definition
protected virtual void CreateMenuItems()

Dispose(bool)

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

Overrides RadContextMenu.Dispose(bool)

OnEditAppointmentClick(object, EventArgs)

Called when the users clicks on the "Edit appointment" menu item.

Declaration

cs-api-definition
protected virtual void OnEditAppointmentClick(object sender, EventArgs e)

Parameters

sender

object

The menu item that was clicked.

e

EventArgs

The event arguments.

OnNewAppointmentItemClick(object, EventArgs)

Called when the users clicks on the "New appointment" menu item.

Declaration

cs-api-definition
protected virtual void OnNewAppointmentItemClick(object sender, EventArgs e)

Parameters

sender

object

The menu item that was clicked.

e

EventArgs

The event arguments.

OnNewRecurringItemClick(object, EventArgs)

Called when the users clicks on the "New recurring appointment" menu item.

Declaration

cs-api-definition
protected virtual void OnNewRecurringItemClick(object sender, EventArgs e)

Parameters

sender

object

The menu item that was clicked.

e

EventArgs

The event arguments.

OnNextViewItemClick(object, EventArgs)

Called when the users clicks on the "Next view" menu item.

Declaration

cs-api-definition
protected virtual void OnNextViewItemClick(object sender, EventArgs e)

Parameters

sender

object

The menu item that was clicked.

e

EventArgs

The event arguments.

OnPreviousViewItemClick(object, EventArgs)

Called when the users clicks on the "Previous view" menu item.

Declaration

cs-api-definition
protected virtual void OnPreviousViewItemClick(object sender, EventArgs e)

Parameters

sender

object

The menu item that was clicked.

e

EventArgs

The event arguments.

OnScaleRangeItemClick(object, EventArgs)

Called when the users clicks on one of the scale range menu items.

Declaration

cs-api-definition
protected virtual void OnScaleRangeItemClick(object sender, EventArgs e)

Parameters

sender

object

The menu item that was clicked.

e

EventArgs

The event arguments.

OnTimescalesItemClick(object, EventArgs)

Called when the users clicks on one of the timescale menu item.

Declaration

cs-api-definition
protected virtual void OnTimescalesItemClick(object sender, EventArgs e)

Parameters

sender

object

The menu item that was clicked.

e

EventArgs

The event arguments.

SetScaleRangeItemsVisibility(ElementVisibility)

Sets the visibility of all ScaleRange menu items to the provided visibility value.

Declaration

cs-api-definition
public void SetScaleRangeItemsVisibility(ElementVisibility visibility)

Parameters

visibility

ElementVisibility

The new visibility for the menu items.

SetSelectedTimescale(Timescales)

Sets the menu item holding the provided timescale as selected.

Declaration

cs-api-definition
public void SetSelectedTimescale(Timescales timescale)

Parameters

timescale

Timescales

The value to select.

UnwireEvents()

Removes the subscription for all menu items events.

Declaration

cs-api-definition
protected virtual void UnwireEvents()

WireEvents()

Add subscriptions for all menu items to their corresponding event handlers.

Declaration

cs-api-definition
protected virtual void WireEvents()