Day Changed Event?

2 posts, 0 answers
  1. Phillip Foster
    Phillip Foster avatar
    58 posts
    Member since:
    Apr 2010

    Posted 07 May 2010 Link to this post

    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?
  2. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 10 May 2010 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top