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

[Solved] how to enable the drag facility for an appointment

6 Answers 99 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Nagesh Mynedi
Top achievements
Rank 1
Nagesh Mynedi asked on 20 Jan 2010, 05:50 AM
how to enable the drag facility for an appointment in server side with out making the allowedit is false

6 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 20 Jan 2010, 11:53 AM
Hello Nagesh,

http://www.telerik.com/community/forums/aspnet-ajax/scheduler/how-to-enable-the-drag-facility-for-an-appointment.aspx

Regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Andy
Top achievements
Rank 1
answered on 14 Feb 2010, 02:14 PM
Similar question......

How do you disable the drag facility, without losing edit ability?

I want to ensure that the user can edit appointments using only the edit form, and not by dragging.

Andy
0
Peter
Telerik team
answered on 16 Feb 2010, 02:22 PM
Hi Anand,

OnClientAppointmentMoving can also be cancelled.

Best wishes,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Andy
Top achievements
Rank 1
answered on 16 Feb 2010, 02:29 PM
Hi Peter,

I tried using the client side event, but its still not working. I am able to move the appointment around.

I've using the following code in the page header:
    <script type="text/javascript"
        function OnClientAppointmentMoving(sender, eventArgs) { 
            eventArgs.set_cancel(false); 
        } 
        function OnClientAppointmentResizing(sender, eventArgs) { 
            eventArgs.set_cancel(false); 
        } 
    </script> 
 

Then I've set the RadScheduler as follows:
            <telerik:RadScheduler ID="schCruiseCalendar" runat="server" DataEndField="EndTime" 
                DataKeyField="ID" DataStartField="StartTime" DataSubjectField="Subject" 
                ValidationGroup="schCalendar" SelectedView="WeekView" StartInsertingInAdvancedForm="True" 
                StartEditingInAdvancedForm="true" WeekView-ColumnHeaderDateFormat="ddd, d MMM" 
                OnClientAppointmentMoving="OnClientAppointmentMoving" OnClientAppointmentResizing="OnClientAppointmentResizing"
 

Is there something i am missing???

Thanks

Andy





0
Peter
Telerik team
answered on 16 Feb 2010, 02:33 PM
Hi Anand,

The events should be cancelled with eventArgs.set_cancel(true);

All the best,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Andy
Top achievements
Rank 1
answered on 16 Feb 2010, 02:35 PM
DAMN!!!! What an STUPID error on my part!!!

Seems i really need to catch up on some sleep. Been having 20-hour days for 5 straight weeks now!!! :(

Thanks a lot for this

Andy
Tags
Scheduler
Asked by
Nagesh Mynedi
Top achievements
Rank 1
Answers by
Peter
Telerik team
Andy
Top achievements
Rank 1
Share this question
or