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

RadScheduler events execution

3 Answers 110 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Teja
Top achievements
Rank 1
Teja asked on 08 Jun 2013, 12:05 PM
HI,

               I have a requirement before inserting an appointment to the scheduler i need to validate it. for that i want to have a serverside call on OnClientAppointmentInserting and then continue with next event OnAppointmentInsert.
currently, i am able to call a server side function on OnClientAppointmentInserting  but the next event i.e. OnAppointmentInsert is not getting fired. May i know how can i handle this?


TIA.

-Teja

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 13 Jun 2013, 07:00 AM
Hello,

 
Yes this behavior is expected because the onAppointmentInseting server event is thrown when the appointment is added from the advanced form.

You can try using the onFormCreating event that is thrown wright before the advanced form is opened and can be canceled.

Hope this will be helpful.

Regards,
Plamen
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Teja
Top achievements
Rank 1
answered on 13 Jun 2013, 07:21 AM
Thanks a Ton :) This is the event that im looking for :)

I have 1 more query.

In my appointmentInsert I should validate/asl user for more inputs (more than once) before inserting an appointment; for that im using RadAlert/RadPrompt as required.

Consider the snippet is as below


If(cond1)
RadPrompt(....)
If(Cond2)
RadConfirm(....)
If(cond3)
RadAlert(....)

If all the conditions satisfy all the popups appear being the last one on the top(RadAlert for the above case). And finally the last one wud only serve its purpose; the rest being ignored. Can i alter this behavior so that each of the RadAlert/RadPrompt/RadConfirm is answered by user?

Thanks,
Teja.
0
Plamen
Telerik team
answered on 17 Jun 2013, 05:05 PM
Hello,

 
You can refer to this online demo where similar behavior is implemented where adding overlapping appointments.

Hope this will be helpful.

Regards,
Plamen
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Scheduler
Asked by
Teja
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Teja
Top achievements
Rank 1
Share this question
or