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

[Solved] Allow editing/disable dragging?

3 Answers 235 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Fooberichu
Top achievements
Rank 2
Fooberichu asked on 27 Dec 2007, 07:47 PM
I am developing a module for our company intranet (using DotNetNuke) -- actually have already created the module, but porting it to use RadScheduler instead of the way I used to do it, and have a couple things I'd like to accomplish, but not really sure if it is possible.

I want to enable editing (based on security roles, that is easy enough, just check security and set the "AllowEdit", "AllowInsert" and "AllowDelete" properties based on security), but in all cases disallow dragging the event to a different day or in the deeper views dragging the start/end time around on the event.  Is that possible to do in general or would I have to "trick" it by disabling edits in all cases, and then use the OnClientDoubleClick to achieve my "edit" (since I am opening it in a RadWindow because I need advanced editing capabilities anyway)?

Would love the "best practices" solution on this one.  I have some other questions as well, but in the interest of keeping the threads specific, I'll start a new thread with my other questions.

**EDIT** for now I think I'll just disable editing since that will prevent dragging, and then use the OnClientDoubleClick to get me the eventdetails page (from where the user, if they have the appropriate permissions, can click to "edit" the event).  Still look forward to "best practices" on this.

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 28 Dec 2007, 11:12 AM
Hi Fooberichu,

Thank you for your interest in RadScheduler and your question.

What you want to achieve could be easily accomplished if RadScheduler had OnClientDragging event. We have plan to implement such event soon. The "best practices" solution would be to cancel the OnClientDragging event.


Greetings,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Robert
Top achievements
Rank 1
answered on 16 Jun 2008, 09:53 PM
Any implementation example for this yet? I would like to know how to PREVENT dragging, but allow editing thru my advanced insert/editing form.
0
Peter
Telerik team
answered on 17 Jun 2008, 08:52 AM
Hello Robert,

Now you can easily do this by cancelling the OnClientAppointmentMoving event. For example:

  <script type="text/javascript">  
    function OnClientAppointmentMoving(sender, eventArgs)  
    {  
        eventArgs.set_cancel(true);  
    }  
    </script> 
    <telerik:RadScheduler ID="RadScheduler1" 
    OnClientAppointmentMoving="OnClientAppointmentMoving" 


Kind regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Fooberichu
Top achievements
Rank 2
Answers by
Peter
Telerik team
Robert
Top achievements
Rank 1
Share this question
or