Drag and Drop task

7 posts, 2 answers
  1. Ran
    Ran avatar
    29 posts
    Member since:
    Apr 2015

    Posted 24 Nov 2015 Link to this post

    Hi.

     Why drag and drop task isn't change the "recurrenceRule" on the element i get on:

    dataSource.transport -> update: function (options)  -> options.data

     

    Thnaks

  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 26 Nov 2015 Link to this post

    Hello Ran,

    The Scheduler currently does not support updating the recurrence rule when dragging recurring event - only the event start / end fields are updated. You can however share your idea at Kendo UI UserVoice to allow other users vote and evaluate it. Most voted ideas are included in next Kendo UI releases. 

    Regards,
    Vladimir Iliev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Ran
    Ran avatar
    29 posts
    Member since:
    Apr 2015

    Posted 26 Nov 2015 in reply to Vladimir Iliev Link to this post

     Hi Vladimir,

     Thanks for the comment!

    Is there a possibility to allow the drag events only within the specific day and not allow dragging events between days?

    Thanks,

    Ran

  5. Answer
    Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 30 Nov 2015 Link to this post

    Hi Ran,

    You can achieve this using the Scheduler events as shown in the following demo:

    Regards,
    Vladimir Iliev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  6. Ran
    Ran avatar
    29 posts
    Member since:
    Apr 2015

    Posted 30 Nov 2015 in reply to Vladimir Iliev Link to this post

    Hi Vladimir ,

    Very helpful!

    Thanks,

    Ran

  7. Ran
    Ran avatar
    29 posts
    Member since:
    Apr 2015

    Posted 02 Dec 2015 in reply to Vladimir Iliev Link to this post

    Hi Vladimir ,

    Is it possible to change the cursor while dragging tasks?

    When you try to drag a task to a certain day that you shouldn't drag him , I want the cursor changes into something else .

    Only when you drag a task to day you can drag tasks I want to remain with pointer cursor as it is now .

    Currently it looks like you can drag tasks to places that you can not really drag them into.

    Thanks,

    Ran

  8. Answer
    Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 03 Dec 2015 Link to this post

    Hi Ran,

    You can use the same approach of changing the cursor that is shown in the previously provided demo in your custom scenario:

    resize: function(e) {
      if (roomIsOccupied(e.start, e.end, e.event, e.resources) || attendeeIsOccupied(e.start, e.end, e.event, e.resources)) {
        this.wrapper.find(".k-marquee-color").addClass("invalid-slot");
        e.preventDefault();
      }
    },
    resizeEnd: function(e) {
        if (!checkAvailability(e.start, e.end, e.events)) {
          e.preventDefault();
        }
    },
    move: function(e) {
        if (roomIsOccupied(e.start, e.end, e.event, e.resources) || attendeeIsOccupied(e.start, e.end, e.event, e.resources)) {
            this.wrapper.find(".k-event-drag-hint").addClass("invalid-slot");
        }
    },

    <style>
        .invalid-slot {
            background: red !important;
            cursor: no-drop;
        }
    </style>


    Regards,
    Vladimir Iliev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready