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

AppointmentCommand Validation

1 Answer 13 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jacqui
Top achievements
Rank 1
Jacqui asked on 30 Jul 2015, 12:07 AM

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

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 03 Aug 2015, 11:18 AM
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
Tags
Scheduler
Asked by
Jacqui
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or