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

AppointmentCommandEventArgs

5 Answers 139 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Caio Mayer
Top achievements
Rank 1
Caio Mayer asked on 19 Nov 2007, 01:25 PM
Hi,

How can i Cancel the event AppointmentCommandEventArgs ??
I am using templates.

Thanks.

Caio.

5 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 19 Nov 2007, 01:49 PM
Hello Caio,

Only the following server events can be canceled: AppointmentInsertAppointmentUpdate, 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.
0
Peter
Telerik team
answered on 19 Nov 2007, 02:53 PM
Hi Caio,

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.
0
Peter
Telerik team
answered on 22 Nov 2007, 04:37 PM
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
Tags
Scheduler
Asked by
Caio Mayer
Top achievements
Rank 1
Answers by
Peter
Telerik team
Caio Mayer
Top achievements
Rank 1
Share this question
or