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

    Hi,

    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?

    Thanks,
    Brent

  2. Answer
    Ivan Danchev
    Admin
    Ivan Danchev avatar
    832 posts

    Posted 23 Sep 2015 Link to this post

    Hello,

    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.

    Regards,
    Ivan Danchev
    Telerik
    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. UI for ASP.NET Ajax is Ready for VS 2017
  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