AppointmentCommand Validation

2 posts, 0 answers
  1. Jacqui
    Jacqui avatar
    2 posts
    Member since:
    Aug 2014

    Posted 29 Jul 2015 Link to this post

    Hi,

    I am using the Advanced Template for my appointment and the form contains a buttons with command names of "Insert" and "Update". I can successfully trigger these events and everything works well as long as the user enters all valid information. The command event code behind contains a lot of server-side validation.

    If the validation fails at any point, the validation displays the appropriate error messages on the screen as expected. However, the advanced form closes and the day view calendar reappears. Is is extremely annoying to my users as they have entered a lot of information. They then have to recreate the entire appointment all over again.

    Is there a way to cancel the event so that the advanced for stays on the page? There does not seem to be an e.Cancel setting as there is in the FormCreating event and I have searched the forums as well as google in general without locating a solution.

    Thanks

  2. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 03 Aug 2015 Link to this post

    Hi,

    You can use the AppointmentInsert or AppointmentUpdate methods and cancel them as for example it is done in this online demo.

    Hope this will help you solve the issue.

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top