Programmatically change selected views

2 posts, 0 answers
  1. Mathew
    Mathew avatar
    5 posts
    Member since:
    Jul 2012

    Posted 08 Nov 2012 Link to this post


    I would like to add a custom menu to the appointment context menu, that will only be available on weekview and monthview.
    That menu should switch the scheduler to the dayview.

    Ive been able to implement the extra menu item but i dont know how to tell the scheduler, from inside the AppointmentContextMenuItemClicked event to switch views and update.

    Any ideas?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 08 Nov 2012 Link to this post

    Hi Mathew,

    Try the following code snippet to switch the RadScheduler to DayView on click of the AppointmentContextMenuItem.

    protected void RadScheduler1_AppointmentContextMenuItemClicked(object sender, AppointmentContextMenuItemClickedEventArgs e)
        if (e.MenuItem.Text == "Your Text")
            RadScheduler1.SelectedView = SchedulerViewType.DayView;

    Hope this helps.

Back to Top