Event Order - Why is AppointmentCreated after Page_PreRender?

3 posts, 1 answers
  1. Brent Hetland
    Brent Hetland avatar
    61 posts
    Member since:
    Aug 2009

    Posted 18 Sep 2015 Link to this post


    I use 2015.1.401.

    Why does the AppointmentCreated event fire AFTER the Page_PreRender?  I want to get a count of certain Appointments and it seems like the perfect place for that is in AppointmentCreated (where I already have alot of other appointment related logic).  And then in Page_PreRender I want to use those counts to write out a label to the user to give them some statistics about their appointments.

    Is there a different event I can use?


  2. Answer
    Ivan Danchev
    Ivan Danchev avatar
    788 posts

    Posted 23 Sep 2015 Link to this post


    The RadScheduler's AppointmentCreated event and other events (AppointmentDataBound, AppointmentsPopulating) fire after PreRender because of the data binding, which occurs after PreRender. If you need an event, which fires later in the page lifecycle than AppointmentCreated you can use the PreRenderComplete event . All of the above-mentioned RadScheduler events fire between PreRender and PreRenderComplete.

    Ivan Danchev
    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 Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
  4. Brent Hetland
    Brent Hetland avatar
    61 posts
    Member since:
    Aug 2009

    Posted 23 Sep 2015 in reply to Ivan Danchev Link to this post

    Thanks, I'll check that out.  I thought that would be too late to make any changes to any other controls in the page...
Back to Top