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

[Solved] Scheduler Edit appointments

3 Answers 255 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
f
Top achievements
Rank 1
f asked on 29 Dec 2007, 09:41 AM
Hi

I am using the ModalPopupExtender (AjaxControlToolkit ) for appointments external edit on this event.
protected void RadScheduler1_AppointmentClick

How can it be possible to not show the scheduler standard edit?


Thanks,
Florin

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 02 Jan 2008, 05:31 PM
Hi Florin,

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
0
Peter
Telerik team
answered on 03 Jan 2008, 07:41 AM
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:

 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
Tags
Scheduler
Asked by
f
Top achievements
Rank 1
Answers by
Peter
Telerik team
f
Top achievements
Rank 1
Share this question
or