Represents the default context menu shown for RadScheduler elements.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class SchedulerDefaultContextMenu : RadContextMenu, IComponent, IDisposable, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentRadContextMenuSchedulerDefaultContextMenu
Implements:
Inherited Members
Constructors
Creates a new instance of the SchedulerDefaultContextMenu class.
public SchedulerDefaultContextMenu(RadSchedulerElement schedulerElement)
The RadSchedulerElement this menu is associated with.
Properties
Gets the appointment the context menu is opened for.
public IEvent Appointment { get; }
Gets the SchedulerCellElement the context menu is opened for.
public SchedulerCellElement CellElement { get; }
Gets the menu item for changing the Timescales of a SchedulerTimelineView to day.
public SchedulerTimescalesMenuItem DayItem { get; }
Gets the menu item for opening an appointment for edit.
public SchedulerMenuItem EditAppointmentItem { get; }
Gets the menu item for changing the Timescales of a SchedulerTimelineView to fifteen minutes.
public SchedulerTimescalesMenuItem FifteenMinutesItem { get; }
Gets the menu item for changing the Timescales of a SchedulerTimelineView to thirty minutes.
public SchedulerTimescalesMenuItem HalfHourItem { get; }
Gets the menu item for changing the Timescales of a SchedulerTimelineView to hour.
public SchedulerTimescalesMenuItem HourItem { get; }
Gets the selected time interval from the associated RadSchedulerElement if such exist.
public DateTimeInterval Interval { get; }
Gets the menu item for changing the Timescales of a SchedulerTimelineView to month.
public SchedulerTimescalesMenuItem MonthItem { get; }
Gets the menu item for adding a new appointment.
public SchedulerMenuItem NewAppointmentItem { get; }
Gets the menu item for adding a new recurring appointment.
public SchedulerMenuItem NewRecurringItem { get; }
Gets the menu item for navigating to the next view.
public SchedulerMenuItem NextViewItem { get; }
Gets the menu item for navigating to the previous view.
public SchedulerMenuItem PreviousViewItem { get; }
Gets the menu item for changing the ruler ScaleRange to 10 minutes.
public SchedulerScaleRangeMenuItem ScaleRange10MinutesItem { get; }
Gets the menu item for changing the ruler ScaleRange to 15 minutes.
public SchedulerScaleRangeMenuItem ScaleRange15MinutesItem { get; }
Gets the menu item for changing the ruler ScaleRange to 30 minutes.
public SchedulerScaleRangeMenuItem ScaleRange30MinutesItem { get; }
Gets the menu item for changing the ruler ScaleRange to 5 minutes.
public SchedulerScaleRangeMenuItem ScaleRange5MinutesItem { get; }
Gets the menu item for changing the ruler ScaleRange to 60 minutes.
public SchedulerScaleRangeMenuItem ScaleRange60MinutesItem { get; }
Gets the menu item for changing the ruler ScaleRange to 6 minutes.
public SchedulerScaleRangeMenuItem ScaleRange6MinutesItem { get; }
Gets the scheduler element this menu is associated with.
public RadSchedulerElement SchedulerElement { get; }
Gets the menu item holding the options for the Timescales of a SchedulerTimelineView
public SchedulerMenuItem TimeScalesItem { get; }
Gets the menu item for changing the Timescales of a SchedulerTimelineView to week.
public SchedulerTimescalesMenuItem WeekItem { get; }
Gets the menu item for changing the Timescales of a SchedulerTimelineView to year.
public SchedulerTimescalesMenuItem YearItem { get; }
Methods
Adds all menu items and sub items to the menu.
protected virtual void BuildMenuItemsTree()
Creates the menu items and sub items for the menu.
protected virtual void CreateMenuItems()
Sets the visibility of all ScaleRange menu items to the provided visibility value.
public void SetScaleRangeItemsVisibility(ElementVisibility visibility)
The new visibility for the menu items.
Sets the menu item holding the provided timescale as selected.
public void SetSelectedTimescale(Timescales timescale)
The value to select.
Removes the subscription for all menu items events.
protected virtual void UnwireEvents()
Add subscriptions for all menu items to their corresponding event handlers.
protected virtual void WireEvents()