Class SchedulerDefaultContextMenu
Represents the default context menu shown for RadScheduler elements.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class SchedulerDefaultContextMenu : RadContextMenu, IAnalyticsProvider
Constructors
SchedulerDefaultContextMenu(RadSchedulerElement)
Creates a new instance of the SchedulerDefaultContextMenu class.
Declaration
public SchedulerDefaultContextMenu(RadSchedulerElement schedulerElement)
Parameters
RadSchedulerElement
schedulerElement
The RadSchedulerElement this menu is associated with. |
Properties
Appointment
Gets the appointment the context menu is opened for.
Declaration
public IEvent Appointment { get; }
Property Value
IEvent
|
CellElement
Gets the SchedulerCellElement the context menu is opened for.
Declaration
public SchedulerCellElement CellElement { get; }
Property Value
SchedulerCellElement
|
DayItem
Gets the menu item for changing the Timescales of a SchedulerTimelineView to day.
Declaration
public SchedulerTimescalesMenuItem DayItem { get; }
Property Value
SchedulerTimescalesMenuItem
|
EditAppointmentItem
Gets the menu item for opening an appointment for edit.
Declaration
public SchedulerMenuItem EditAppointmentItem { get; }
Property Value
SchedulerMenuItem
|
FifteenMinutesItem
Gets the menu item for changing the Timescales of a SchedulerTimelineView to fifteen minutes.
Declaration
public SchedulerTimescalesMenuItem FifteenMinutesItem { get; }
Property Value
SchedulerTimescalesMenuItem
|
HalfHourItem
Gets the menu item for changing the Timescales of a SchedulerTimelineView to thirty minutes.
Declaration
public SchedulerTimescalesMenuItem HalfHourItem { get; }
Property Value
SchedulerTimescalesMenuItem
|
HourItem
Gets the menu item for changing the Timescales of a SchedulerTimelineView to hour.
Declaration
public SchedulerTimescalesMenuItem HourItem { get; }
Property Value
SchedulerTimescalesMenuItem
|
Interval
Gets the selected time interval from the associated RadSchedulerElement if such exist.
Declaration
public DateTimeInterval Interval { get; }
Property Value
DateTimeInterval
|
MonthItem
Gets the menu item for changing the Timescales of a SchedulerTimelineView to month.
Declaration
public SchedulerTimescalesMenuItem MonthItem { get; }
Property Value
SchedulerTimescalesMenuItem
|
NewAppointmentItem
Gets the menu item for adding a new appointment.
Declaration
public SchedulerMenuItem NewAppointmentItem { get; }
Property Value
SchedulerMenuItem
|
NewRecurringItem
Gets the menu item for adding a new recurring appointment.
Declaration
public SchedulerMenuItem NewRecurringItem { get; }
Property Value
SchedulerMenuItem
|
NextViewItem
Gets the menu item for navigating to the next view.
Declaration
public SchedulerMenuItem NextViewItem { get; }
Property Value
SchedulerMenuItem
|
PreviousViewItem
Gets the menu item for navigating to the previous view.
Declaration
public SchedulerMenuItem PreviousViewItem { get; }
Property Value
SchedulerMenuItem
|
ScaleRange10MinutesItem
Gets the menu item for changing the ruler ScaleRange to 10 minutes.
Declaration
public SchedulerScaleRangeMenuItem ScaleRange10MinutesItem { get; }
Property Value
SchedulerScaleRangeMenuItem
|
ScaleRange15MinutesItem
Gets the menu item for changing the ruler ScaleRange to 15 minutes.
Declaration
public SchedulerScaleRangeMenuItem ScaleRange15MinutesItem { get; }
Property Value
SchedulerScaleRangeMenuItem
|
ScaleRange30MinutesItem
Gets the menu item for changing the ruler ScaleRange to 30 minutes.
Declaration
public SchedulerScaleRangeMenuItem ScaleRange30MinutesItem { get; }
Property Value
SchedulerScaleRangeMenuItem
|
ScaleRange5MinutesItem
Gets the menu item for changing the ruler ScaleRange to 5 minutes.
Declaration
public SchedulerScaleRangeMenuItem ScaleRange5MinutesItem { get; }
Property Value
SchedulerScaleRangeMenuItem
|
ScaleRange60MinutesItem
Gets the menu item for changing the ruler ScaleRange to 60 minutes.
Declaration
public SchedulerScaleRangeMenuItem ScaleRange60MinutesItem { get; }
Property Value
SchedulerScaleRangeMenuItem
|
ScaleRange6MinutesItem
Gets the menu item for changing the ruler ScaleRange to 6 minutes.
Declaration
public SchedulerScaleRangeMenuItem ScaleRange6MinutesItem { get; }
Property Value
SchedulerScaleRangeMenuItem
|
SchedulerElement
Gets the scheduler element this menu is associated with.
Declaration
public RadSchedulerElement SchedulerElement { get; }
Property Value
RadSchedulerElement
|
TimeScalesItem
Gets the menu item holding the options for the Timescales of a SchedulerTimelineView
Declaration
public SchedulerMenuItem TimeScalesItem { get; }
Property Value
SchedulerMenuItem
|
WeekItem
Gets the menu item for changing the Timescales of a SchedulerTimelineView to week.
Declaration
public SchedulerTimescalesMenuItem WeekItem { get; }
Property Value
SchedulerTimescalesMenuItem
|
YearItem
Gets the menu item for changing the Timescales of a SchedulerTimelineView to year.
Declaration
public SchedulerTimescalesMenuItem YearItem { get; }
Property Value
SchedulerTimescalesMenuItem
|
Methods
BuildMenuItemsTree()
Adds all menu items and sub items to the menu.
Declaration
protected virtual void BuildMenuItemsTree()
CreateMenuItems()
Creates the menu items and sub items for the menu.
Declaration
protected virtual void CreateMenuItems()
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean
disposing
|
Overrides
OnEditAppointmentClick(Object, EventArgs)
Called when the users clicks on the "Edit appointment" menu item.
Declaration
protected virtual void OnEditAppointmentClick(object sender, EventArgs e)
Parameters
System.Object
sender
The menu item that was clicked. |
System.EventArgs
e
The event arguments. |
OnNewAppointmentItemClick(Object, EventArgs)
Called when the users clicks on the "New appointment" menu item.
Declaration
protected virtual void OnNewAppointmentItemClick(object sender, EventArgs e)
Parameters
System.Object
sender
The menu item that was clicked. |
System.EventArgs
e
The event arguments. |
OnNewRecurringItemClick(Object, EventArgs)
Called when the users clicks on the "New recurring appointment" menu item.
Declaration
protected virtual void OnNewRecurringItemClick(object sender, EventArgs e)
Parameters
System.Object
sender
The menu item that was clicked. |
System.EventArgs
e
The event arguments. |
OnNextViewItemClick(Object, EventArgs)
Called when the users clicks on the "Next view" menu item.
Declaration
protected virtual void OnNextViewItemClick(object sender, EventArgs e)
Parameters
System.Object
sender
The menu item that was clicked. |
System.EventArgs
e
The event arguments. |
OnPreviousViewItemClick(Object, EventArgs)
Called when the users clicks on the "Previous view" menu item.
Declaration
protected virtual void OnPreviousViewItemClick(object sender, EventArgs e)
Parameters
System.Object
sender
The menu item that was clicked. |
System.EventArgs
e
The event arguments. |
OnScaleRangeItemClick(Object, EventArgs)
Called when the users clicks on one of the scale range menu items.
Declaration
protected virtual void OnScaleRangeItemClick(object sender, EventArgs e)
Parameters
System.Object
sender
The menu item that was clicked. |
System.EventArgs
e
The event arguments. |
OnTimescalesItemClick(Object, EventArgs)
Called when the users clicks on one of the timescale menu item.
Declaration
protected virtual void OnTimescalesItemClick(object sender, EventArgs e)
Parameters
System.Object
sender
The menu item that was clicked. |
System.EventArgs
e
The event arguments. |
SetScaleRangeItemsVisibility(ElementVisibility)
Sets the visibility of all ScaleRange menu items to the provided visibility value.
Declaration
public void SetScaleRangeItemsVisibility(ElementVisibility visibility)
Parameters
ElementVisibility
visibility
The new visibility for the menu items. |
SetSelectedTimescale(Timescales)
Sets the menu item holding the provided timescale as selected.
Declaration
public void SetSelectedTimescale(Timescales timescale)
Parameters
Timescales
timescale
The value to select. |
UnwireEvents()
Removes the subscription for all menu items events.
Declaration
protected virtual void UnwireEvents()
WireEvents()
Add subscriptions for all menu items to their corresponding event handlers.
Declaration
protected virtual void WireEvents()