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 Scheduler
Declaration
public SchedulerDefaultContextMenu(RadSchedulerElement schedulerElement)
Parameters
Rad The Rad |
Properties
Appointment
Gets the appointment the context menu is opened for.
Declaration
public IEvent Appointment { get; }
Property Value
CellElement
Gets the Scheduler
Declaration
public SchedulerCellElement CellElement { get; }
Property Value
DayItem
Gets the menu item for changing the Timescales of a Scheduler
Declaration
public SchedulerTimescalesMenuItem DayItem { get; }
Property Value
EditAppointmentItem
Gets the menu item for opening an appointment for edit.
Declaration
public SchedulerMenuItem EditAppointmentItem { get; }
Property Value
FifteenMinutesItem
Gets the menu item for changing the Timescales of a Scheduler
Declaration
public SchedulerTimescalesMenuItem FifteenMinutesItem { get; }
Property Value
HalfHourItem
Gets the menu item for changing the Timescales of a Scheduler
Declaration
public SchedulerTimescalesMenuItem HalfHourItem { get; }
Property Value
HourItem
Gets the menu item for changing the Timescales of a Scheduler
Declaration
public SchedulerTimescalesMenuItem HourItem { get; }
Property Value
Interval
Gets the selected time interval from the associated Rad
Declaration
public DateTimeInterval Interval { get; }
Property Value
MonthItem
Gets the menu item for changing the Timescales of a Scheduler
Declaration
public SchedulerTimescalesMenuItem MonthItem { get; }
Property Value
NewAppointmentItem
Gets the menu item for adding a new appointment.
Declaration
public SchedulerMenuItem NewAppointmentItem { get; }
Property Value
NewRecurringItem
Gets the menu item for adding a new recurring appointment.
Declaration
public SchedulerMenuItem NewRecurringItem { get; }
Property Value
NextViewItem
Gets the menu item for navigating to the next view.
Declaration
public SchedulerMenuItem NextViewItem { get; }
Property Value
PreviousViewItem
Gets the menu item for navigating to the previous view.
Declaration
public SchedulerMenuItem PreviousViewItem { get; }
Property Value
ScaleRange10MinutesItem
Gets the menu item for changing the ruler Scale
Declaration
public SchedulerScaleRangeMenuItem ScaleRange10MinutesItem { get; }
Property Value
ScaleRange15MinutesItem
Gets the menu item for changing the ruler Scale
Declaration
public SchedulerScaleRangeMenuItem ScaleRange15MinutesItem { get; }
Property Value
ScaleRange30MinutesItem
Gets the menu item for changing the ruler Scale
Declaration
public SchedulerScaleRangeMenuItem ScaleRange30MinutesItem { get; }
Property Value
ScaleRange5MinutesItem
Gets the menu item for changing the ruler Scale
Declaration
public SchedulerScaleRangeMenuItem ScaleRange5MinutesItem { get; }
Property Value
ScaleRange60MinutesItem
Gets the menu item for changing the ruler Scale
Declaration
public SchedulerScaleRangeMenuItem ScaleRange60MinutesItem { get; }
Property Value
ScaleRange6MinutesItem
Gets the menu item for changing the ruler Scale
Declaration
public SchedulerScaleRangeMenuItem ScaleRange6MinutesItem { get; }
Property Value
SchedulerElement
Gets the scheduler element this menu is associated with.
Declaration
public RadSchedulerElement SchedulerElement { get; }
Property Value
TimeScalesItem
Gets the menu item holding the options for the Timescales of a Scheduler
Declaration
public SchedulerMenuItem TimeScalesItem { get; }
Property Value
WeekItem
Gets the menu item for changing the Timescales of a Scheduler
Declaration
public SchedulerTimescalesMenuItem WeekItem { get; }
Property Value
YearItem
Gets the menu item for changing the Timescales of a Scheduler
Declaration
public SchedulerTimescalesMenuItem YearItem { get; }
Property Value
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.
|
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. The menu item that was clicked. |
System. 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. The menu item that was clicked. |
System. 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. The menu item that was clicked. |
System. 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. The menu item that was clicked. |
System. 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. The menu item that was clicked. |
System. 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. The menu item that was clicked. |
System. 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. The menu item that was clicked. |
System. The event arguments. |
SetScaleRangeItemsVisibility(ElementVisibility)
Sets the visibility of all Scale
Declaration
public void SetScaleRangeItemsVisibility(ElementVisibility visibility)
Parameters
Element 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()