appointment disapears after drag and drop on the AllDay row

2 posts, 0 answers
  1. Allen
    Allen avatar
    111 posts
    Member since:
    Apr 2012

    Posted 12 Dec 2012 Link to this post

    In javascript, is there a way to keep appointment away from the AllDay row?
    eg:
    appointment reach AllDay row {
    eventArgs.set_cancel(true);
    }

    Please refer to the PNG files

     

     

     

  2. Plamen
    Admin
    Plamen avatar
    2958 posts

    Posted 14 Dec 2012 Link to this post

    Hi Allen,

     
    Here is the code that should work for you:

    function OnClientAppointmentMoveEnd(sender, args) {
                    if (args.get_targetSlot().get_durationInMinutes()==1440) {
                        args.set_cancel(true);
                    }
                }

    Hope this will be helpful.

    All the best,
    Plamen
    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.
Back to Top