New to Telerik UI for WinFormsStart a free 30-day trial

Represents the default context menu shown for RadScheduler elements.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

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

Creates a new instance of the SchedulerDefaultContextMenu class.

C#
public SchedulerDefaultContextMenu(RadSchedulerElement schedulerElement)
Parameters:schedulerElementRadSchedulerElement

The RadSchedulerElement this menu is associated with.

Properties

Gets the appointment the context menu is opened for.

C#
public IEvent Appointment { get; }

Gets the SchedulerCellElement the context menu is opened for.

C#
public SchedulerCellElement CellElement { get; }

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

C#
public SchedulerTimescalesMenuItem DayItem { get; }

Gets the menu item for opening an appointment for edit.

C#
public SchedulerMenuItem EditAppointmentItem { get; }

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

C#
public SchedulerTimescalesMenuItem FifteenMinutesItem { get; }

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

C#
public SchedulerTimescalesMenuItem HalfHourItem { get; }

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

C#
public SchedulerTimescalesMenuItem HourItem { get; }

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

C#
public DateTimeInterval Interval { get; }

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

C#
public SchedulerTimescalesMenuItem MonthItem { get; }

Gets the menu item for adding a new appointment.

C#
public SchedulerMenuItem NewAppointmentItem { get; }

Gets the menu item for adding a new recurring appointment.

C#
public SchedulerMenuItem NewRecurringItem { get; }

Gets the menu item for navigating to the next view.

C#
public SchedulerMenuItem NextViewItem { get; }

Gets the menu item for navigating to the previous view.

C#
public SchedulerMenuItem PreviousViewItem { get; }

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

C#
public SchedulerScaleRangeMenuItem ScaleRange10MinutesItem { get; }

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

C#
public SchedulerScaleRangeMenuItem ScaleRange15MinutesItem { get; }

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

C#
public SchedulerScaleRangeMenuItem ScaleRange30MinutesItem { get; }

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

C#
public SchedulerScaleRangeMenuItem ScaleRange5MinutesItem { get; }

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

C#
public SchedulerScaleRangeMenuItem ScaleRange60MinutesItem { get; }

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

C#
public SchedulerScaleRangeMenuItem ScaleRange6MinutesItem { get; }

Gets the scheduler element this menu is associated with.

C#
public RadSchedulerElement SchedulerElement { get; }

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

C#
public SchedulerMenuItem TimeScalesItem { get; }

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

C#
public SchedulerTimescalesMenuItem WeekItem { get; }

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

C#
public SchedulerTimescalesMenuItem YearItem { get; }

Methods

Adds all menu items and sub items to the menu.

C#
protected virtual void BuildMenuItemsTree()

Creates the menu items and sub items for the menu.

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

Overrides: RadContextMenu.Dispose(bool)

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

C#
protected virtual void OnEditAppointmentClick(object sender, EventArgs e)
Parameters:senderobject

The menu item that was clicked.

eEventArgs

The event arguments.

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

C#
protected virtual void OnNewAppointmentItemClick(object sender, EventArgs e)
Parameters:senderobject

The menu item that was clicked.

eEventArgs

The event arguments.

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

C#
protected virtual void OnNewRecurringItemClick(object sender, EventArgs e)
Parameters:senderobject

The menu item that was clicked.

eEventArgs

The event arguments.

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

C#
protected virtual void OnNextViewItemClick(object sender, EventArgs e)
Parameters:senderobject

The menu item that was clicked.

eEventArgs

The event arguments.

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

C#
protected virtual void OnPreviousViewItemClick(object sender, EventArgs e)
Parameters:senderobject

The menu item that was clicked.

eEventArgs

The event arguments.

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

C#
protected virtual void OnScaleRangeItemClick(object sender, EventArgs e)
Parameters:senderobject

The menu item that was clicked.

eEventArgs

The event arguments.

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

C#
protected virtual void OnTimescalesItemClick(object sender, EventArgs e)
Parameters:senderobject

The menu item that was clicked.

eEventArgs

The event arguments.

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

C#
public void SetScaleRangeItemsVisibility(ElementVisibility visibility)
Parameters:visibilityElementVisibility

The new visibility for the menu items.

Sets the menu item holding the provided timescale as selected.

C#
public void SetSelectedTimescale(Timescales timescale)
Parameters:timescaleTimescales

The value to select.

Removes the subscription for all menu items events.

C#
protected virtual void UnwireEvents()

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

C#
protected virtual void WireEvents()