Disable drag and drop

3 posts, 1 answers
  1. Jonas
    Jonas avatar
    39 posts
    Member since:
    Oct 2014

    Posted 17 Nov 2015 Link to this post

    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. Answer
    Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1803 posts

    Posted 18 Nov 2015 Link to this post

    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
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Jonas
    Jonas avatar
    39 posts
    Member since:
    Oct 2014

    Posted 19 Nov 2015 in reply to Konstantin Dikov Link to this post

    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

Back to Top