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

Day Changed Event?

1 Answer 61 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Phillip Foster
Top achievements
Rank 1
Phillip Foster asked on 07 May 2010, 04:02 PM
I was just curious if there was a day changed event (or something similar).
I am loading my scheduler up within the code, but I was only wanting to load the data for the selected day. 

So I figured I would load the data when the user switched days on the scheduler. Am I able to do this?

1 Answer, 1 is accepted

Sort by
0
Dobry Zranchev
Telerik team
answered on 10 May 2010, 12:04 PM
Hello Phillip Foster,

Thank you for contacting us.

In order to listen for a change in the StartDate property of the ActiveView, just subscribe for the PropertyChanged event of the ActiveView:
 
this.radScheduler1.ActiveView.PropertyChanged += new PropertyChangedEventHandler(ActiveView_PropertyChanged);

and check in it whether the StartDate property has changed. If the PropertyName property of the argument is the name of the StartDate property, load the data.
 
void ActiveView_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
    if (e.PropertyName == "StartDate")
    {
        //load the data here
    }
}

I hope this will help you. Do not hesitate to contact me if you have any other questions.
 

All the best,
Dobry Zranchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Scheduler and Reminder
Asked by
Phillip Foster
Top achievements
Rank 1
Answers by
Dobry Zranchev
Telerik team
Share this question
or