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

Supress "Edit this occurence or Edit Series" Dialog

6 Answers 163 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Naganand Bhagavan
Top achievements
Rank 1
Naganand Bhagavan asked on 01 Nov 2007, 09:55 PM
I want to open the Appointment as "Series" always and I am using an external edit form to display/edit Appointment info.
So is there a way to do that currently?
Thanks.

6 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 06 Nov 2007, 05:10 PM
Hello Naganand,

Thank you for your question.

Please, refer to the External Edit in RadWindow example. Here we have removed recurrent appointments for simplicity, but you can modify the example to use recurrence by binding RadScheduler to a data source which has recurrent appointments.

Now, if you double click on a recurrent appointment, the first window which will pop out is the one asking you if you want to edit this instance only or the series. Unfortunately, with the current version of RadScheduler this intermediate step cannot be avoided, but for the next release - Q3 2007 in December we will expose a property to allow this.

Next, if you try to edit the first occurrence of the series you will not encounter any problems, but if you try with other instances of the series, you will get an error because the ID of the appointment is not the ParentID of the recurrence. To work around this problem you should use the following code in the Default.aspx
page:

<script type="text/javascript">  
            <!--          
            function AppointmentEditing(sender, eventArgs)  
            {  
                var apt = eventArgs.get_Appointment();  
                var id = apt.ID;  
                  
                if (apt._recurrenceParentID)  
                    id = apt._recurrenceParentID;  
 
                window.radopen("AdvancedFormCS.aspx?Mode=Edit&AppointmentId=" + id, "AdvancedForm");  
 
                eventArgs.set_cancel(true);  
            } 

Feel free to contact us if you experience any problems.



Greetings,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
eric knight
Top achievements
Rank 1
answered on 01 Feb 2008, 03:41 PM
Hello,

I am attempting to to implement the External Edit in RadWindow solution mentioned above and noticed that there would be a property to supress the edit instance or series dialog in the Q3 2007 build. Was this ever included and if so, which property (or method) is it? I may just be overlooking it, but we are using the Q3 2007 build and I can't seem to find it anywhere.

If by chance it wasn't included, can you provide a sample work around?

Thank you.
0
Peter
Telerik team
answered on 01 Feb 2008, 04:47 PM
Hi Eric,

Here is how to do this:
function RecurrenceActionDialogShowingHandler(sender, args)  
        {  
              
            args.set_cancel(true);  
            //Edit this instance only:  
            //args.set_editSeries(false);  
              
            //Edit the entire series:  
            args.set_editSeries(true);  
        }  
        </script> 



Regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
eric knight
Top achievements
Rank 1
answered on 01 Feb 2008, 06:23 PM
Hello Peter,

Thank you for the quick response.
I'm still unsure how this should be used. Would the OnClientAppointmentClicked event call this function?
Admittedly my javascript skills are a bit lacking so if I'm missing something obvious I apologize.
Currently I am assigning  RecurrenceActionDialogShowingHandler to OnClientAppointmentClicked event and I receive "object does not support this property or method" error (args does not contain a set_cancel or set_editSeries method).

Thanks again.
0
eric knight
Top achievements
Rank 1
answered on 01 Feb 2008, 08:14 PM
Please disregard my last post, I discovered the problem.
Thank you for the solution Peter!
0
towpse
Top achievements
Rank 2
answered on 05 Jan 2010, 07:31 PM
What was the problem?
Tags
Scheduler
Asked by
Naganand Bhagavan
Top achievements
Rank 1
Answers by
Peter
Telerik team
eric knight
Top achievements
Rank 1
towpse
Top achievements
Rank 2
Share this question
or