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

Exception Handling in the Advanced Insert Template

1 Answer 49 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mbott
Top achievements
Rank 1
Mbott asked on 06 Jan 2016, 01:31 PM

Hello, Happy New Year everyone.

I set up the scheduler using the example for advanced insert template as described here: http://demos.telerik.com/aspnet-ajax/scheduler/examples/advancedformtemplate/defaultcs.aspx

 

I added a method for the click event of the insert button, to so some custom code, and appointment validation. For example I'm checking our database to make sure there is no appointment conflict.

The issue i'm having is that if I handle an exception in that event, the advanced insert form template modal still continue to process, closes, and still hits the insert appointment method for the RadScheduler on the default page.

I would like to keep the modal open until all validation passes, then proceed, is there a way to do this? Or is there a  way to programatically reopen the modal?

 Thanks

 

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 11 Jan 2016, 08:00 AM
Hi,

In such case we recommend using the AppointmentInsert(Update) event and cancel it in case the server validation does not pass as for example it is done in this online demo. Then the advanced form will be still opened.

Regards,
Plamen
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
Tags
Scheduler
Asked by
Mbott
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or