This is a migrated thread and some comments may be shown as answers.

Navigate in the Schedule

1 Answer 82 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Elver Emilio Cano Cardona
Top achievements
Rank 1
Elver Emilio Cano Cardona asked on 14 Oct 2011, 04:57 PM
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.

1 Answer, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 19 Oct 2011, 05:03 PM
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()
{
    InitializeComponent();
 
    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.

Greetings,
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.

Tags
Scheduler and Reminder
Asked by
Elver Emilio Cano Cardona
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Share this question
or