3 Answers, 1 is accepted
0
Hi Florin,
You can cancel the OnClientAppointmentEditing event like this:
Is this what you need?
Best wishes,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
You can cancel the OnClientAppointmentEditing event like this:
| <telerik:RadScheduler ID="RadScheduler1" OnClientAppointmentEditing="CancelEdit" runat="server" /> |
| <script type="text/javascript"> |
| function CancelEdit(sender, args) |
| { |
| args.set_cancel(true); |
| } |
| </script> |
Is this what you need?
Best wishes,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
f
Top achievements
Rank 1
answered on 03 Jan 2008, 07:17 AM
Hi Peter,
If I do that then the RadScheduler1_AppointmentClick is never called and I need this event to be fired. I need to perform custom server side operations on RadScheduler1_AppointmentClick.
Thanks,
Florin
If I do that then the RadScheduler1_AppointmentClick is never called and I need this event to be fired. I need to perform custom server side operations on RadScheduler1_AppointmentClick.
Thanks,
Florin
0
Hi Florin,
Please, refer to the External Edit in RadWindow online example as it shows similar functionality. Here is the java script code responsible for supressing the advanced edit form and inserting a new appointment:
I recommend you examine the example from your local installation and review the code for all related files.
Let us know if you have additional questions.
Greetings,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Please, refer to the External Edit in RadWindow online example as it shows similar functionality. Here is the java script code responsible for supressing the advanced edit form and inserting a new appointment:
| function AppointmentEditing(sender, eventArgs) |
| { |
| var apt = eventArgs.get_appointment(); |
| window.radopen("AdvancedFormCS.aspx?Mode=Edit&AppointmentId=" + apt.ID, "AdvancedForm"); |
| eventArgs.set_cancel(true); |
| currentApt = null; |
| } |
| function AppointmentInserting(sender, eventArgs) |
| { |
| var start = formatDate(eventArgs.get_startTime()); |
| var isAllDay = eventArgs.get_isAllDay(); |
| // New appointment |
| window.radopen("AdvancedFormCS.aspx?Mode=Insert&Start=" + start + "&IsAllDay=" + isAllDay, "AdvancedForm"); |
I recommend you examine the example from your local installation and review the code for all related files.
Let us know if you have additional questions.
Greetings,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center