
Caio Mayer
Top achievements
Rank 1
Caio Mayer
asked on 19 Nov 2007, 01:25 PM
Hi,
How can i Cancel the event
How can i Cancel the event
AppointmentCommandEventArgs ??
I am using templates.
Thanks.
Caio.
5 Answers, 1 is accepted
0
Hello Caio,
Only the following server events can be canceled: AppointmentInsert, AppointmentUpdate, AppointmentDelete, NavigationCommand, and FormCreating. What exactly do you want to achieve. If you give us more details on the case that you are working on, we might be able to suggest a solution.
Greetings,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Only the following server events can be canceled: AppointmentInsert, AppointmentUpdate, AppointmentDelete, NavigationCommand, and FormCreating. What exactly do you want to achieve. If you give us more details on the case that you are working on, we might be able to suggest a solution.
Greetings,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Caio Mayer
Top achievements
Rank 1
answered on 19 Nov 2007, 01:59 PM
Hi,
I am using Templates like this example http://www.telerik.com/DEMOS/ASPNET/Prometheus/Scheduler/Examples/Templates/DefaultCS.aspx
But when i am at the advancedInsert i want to validate the form, and if its fail, i need to cancel the insertCommand and return to it.
I am using Templates like this example http://www.telerik.com/DEMOS/ASPNET/Prometheus/Scheduler/Examples/Templates/DefaultCS.aspx
But when i am at the advancedInsert i want to validate the form, and if its fail, i need to cancel the insertCommand and return to it.
0
Hi Caio,
Thanks for elaborating on the case. You can still use the AppointmentInsert event and cancel it if needed.
All the best,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thanks for elaborating on the case. You can still use the AppointmentInsert event and cancel it if needed.
protected void RadScheduler1_AppointmentInsert(object sender, SchedulerCancelEventArgs e) |
{ |
e.Cancel = true; |
} |
All the best,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Caio Mayer
Top achievements
Rank 1
answered on 19 Nov 2007, 03:33 PM
Hi,
Thanks for the reply.
I can use it, but i need to use Command because i need to get some controls on the Container.
Like this http://www.telerik.com/community/forums/thread/b311D-bamema.aspx
Thanks.
Caio.
Thanks for the reply.
I can use it, but i need to use Command because i need to get some controls on the Container.
Like this http://www.telerik.com/community/forums/thread/b311D-bamema.aspx
Thanks.
Caio.
0
Hello Caio,
I understand. However, it is not possible to get nested controls in the AppointmentInsert event handler. If you specify what exactly you want to achieve, we might be able to suggest a workaround.
Regards,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I understand. However, it is not possible to get nested controls in the AppointmentInsert event handler. If you specify what exactly you want to achieve, we might be able to suggest a workaround.
Regards,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center