Supress "Edit this occurence or Edit Series" Dialog

7 posts, 0 answers
  1. Naganand Bhagavan
    Naganand Bhagavan avatar
    13 posts
    Member since:
    Sep 2007

    Posted 01 Nov 2007 Link to this post

    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.
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 06 Nov 2007 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. eric knight
    eric knight avatar
    22 posts
    Member since:
    Jan 2007

    Posted 01 Feb 2008 Link to this post

    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.
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 01 Feb 2008 Link to this post

    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
  6. eric knight
    eric knight avatar
    22 posts
    Member since:
    Jan 2007

    Posted 01 Feb 2008 Link to this post

    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.
  7. eric knight
    eric knight avatar
    22 posts
    Member since:
    Jan 2007

    Posted 01 Feb 2008 Link to this post

    Please disregard my last post, I discovered the problem.
    Thank you for the solution Peter!
  8. towpse
    towpse avatar
    224 posts
    Member since:
    Mar 2008

    Posted 05 Jan 2010 Link to this post

    What was the problem?
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017