Cancelling appointment form load on client side

4 posts, 0 answers
  1. Kris
    Kris avatar
    13 posts
    Member since:
    Jan 2011

    Posted 18 Oct 2011 Link to this post

    Hello,

    How do I cancel the appointment editor popup after the user double-clicks an appointment? I need to implement some validation before I allow the user to edit an appointment. This is an example of my code, but the set_cancel method is not valid apparently.

    function onAppointmentDoubleClick(sender, eventArgs) {
                  
                var ID = '<%=ID%>';
      
                if (ID == '0') {
                    eventArgs.set_cancel(true);
                }
            }

  2. Plamen
    Admin
    Plamen avatar
    2731 posts

    Posted 19 Oct 2011 Link to this post

    Hello Kris,

    You can try to use the OnClientAppointmentEditing event.

    Hope this will be helpful.

    Regards,
    Plamen Zdravkov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kris
    Kris avatar
    13 posts
    Member since:
    Jan 2011

    Posted 19 Oct 2011 Link to this post

    The issue with the OnClientAppointmentEditing is that it loads the window that asks if this edit is only for this occurence. That being said, I see the work around by using the onClientRecurrenceActionDialogShowing event which also allows the set_cancel method.
     
    Is there any resource that shows all the methods that can be used with these events? Specifically OnClientAppointmentInserting and OnClientRecurrenceActionDialogShowing...

     

  5. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 19 Oct 2011 Link to this post

    Kris,

    I suggest starting with the online documentation.

    -- 
    Stuart
Back to Top