Exception Handling in the Advanced Insert Template

2 posts, 0 answers
  1. Mbott
    Mbott avatar
    24 posts
    Member since:
    Dec 2008

    Posted 06 Jan 2016 Link to this post

    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?



  2. Plamen
    Plamen avatar
    2821 posts

    Posted 11 Jan 2016 Link to this post


    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.

    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
Back to Top