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

Event Order - Why is AppointmentCreated after Page_PreRender?

2 Answers 18 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Brent Hetland
Top achievements
Rank 1
Brent Hetland asked on 18 Sep 2015, 06:08 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Danchev
Telerik team
answered on 23 Sep 2015, 03:06 PM
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
0
Brent Hetland
Top achievements
Rank 1
answered on 23 Sep 2015, 05:08 PM
Thanks, I'll check that out.  I thought that would be too late to make any changes to any other controls in the page...
Tags
Scheduler
Asked by
Brent Hetland
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Brent Hetland
Top achievements
Rank 1
Share this question
or