Navigate in the Schedule

2 posts, 0 answers
  1. Elver Emilio Cano Cardona
    Elver Emilio Cano Cardona avatar
    25 posts
    Member since:
    Dec 2009

    Posted 14 Oct 2011 Link to this post

    Good morning

    i have a doubt  regarding the schedule. in the control there is a posibility to navigate through of the control with click in next appointment and back appoinment and i need to know which event is triggered.. when i do click in the control.. i couldn't find yet.. and i need to do something specific..

    somebody could you help me..
    Thanks a lot.
  2. Ivan Todorov
    Ivan Todorov avatar
    688 posts

    Posted 19 Oct 2011 Link to this post

    Hello Elver Emilio Cano Cardona,

    Thank you for writing.

    Currently, the internal implementation of RadScheduler does not allow subscribing to the click event of the navigation buttons. I have logged this to PITS as a feature request so you can subscribe for it and track for changes. Here is the link to the PITS item. I have updated your Telerik points accordingly.

    For the time being, you can try subscribing to the PropertyChanged event of the ActiveView in order to monitor changes in its StartDate property:
    public Form1()
        this.radScheduler1.ActiveView.PropertyChanged += new PropertyChangedEventHandler(ActiveView_PropertyChanged);
        this.radScheduler1.ActiveViewChanging += new EventHandler<SchedulerViewChangingEventArgs>(radScheduler_ActiveViewChanging);
    void radScheduler_ActiveViewChanging(object sender, SchedulerViewChangingEventArgs e)
        e.OldView.PropertyChanged -= ActiveView_PropertyChanged;
        e.NewView.PropertyChanged += ActiveView_PropertyChanged;
    void ActiveView_PropertyChanged(object sender, PropertyChangedEventArgs e)
        if (e.PropertyName == "StartDate")
               //the start date has changed

    Please note that this is not the same as the click event since it might also be caused by some other action.

    I hope this is useful. Feel free to write back if you have any additional questions.

    Ivan Todorov
    the Telerik team

    Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

  3. DevCraft R3 2016 release webinar banner
Back to Top