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

Disable drag and drop

2 Answers 636 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jonas
Top achievements
Rank 1
Jonas asked on 17 Nov 2015, 12:40 PM

Is there a way to disable drag and drop for tasks in the scheduler?

I want my users only to be able to edit tasks through the edit form.

/Jonas

2 Answers, 1 is accepted

Sort by
0
Accepted
Konstantin Dikov
Telerik team
answered on 18 Nov 2015, 05:49 PM
Hello Jonas,

You could disable the moving of the events through the editable.move property:
As for a scenario where you need to prevent the moving conditionally, you could handle the moveStart event and use e.preventDefault():
moveStart: function(e) {
    e.preventDefault();
},

Hope this helps.


Regards,
Konstantin Dikov
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Jonas
Top achievements
Rank 1
answered on 19 Nov 2015, 07:54 AM

Thank you!

 Just to add for others looking for the same thing, in MVC you write it like this:

.Editable(e => e.Move(false))

/Jonas

Tags
Scheduler
Asked by
Jonas
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Jonas
Top achievements
Rank 1
Share this question
or