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

appointment disapears after drag and drop on the AllDay row

1 Answer 24 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Allen
Top achievements
Rank 1
Allen asked on 12 Dec 2012, 02:57 PM
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

 

 

 

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 14 Dec 2012, 09:02 AM
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.
Tags
Scheduler
Asked by
Allen
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or