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

Drag and Drop task

6 Answers 153 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ran
Top achievements
Rank 1
Ran asked on 24 Nov 2015, 05:18 PM

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

6 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 26 Nov 2015, 09:25 AM
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!
 
0
Ran
Top achievements
Rank 1
answered on 26 Nov 2015, 01:31 PM

 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

0
Accepted
Vladimir Iliev
Telerik team
answered on 30 Nov 2015, 08:36 AM
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!
 
0
Ran
Top achievements
Rank 1
answered on 30 Nov 2015, 01:31 PM

Hi Vladimir ,

Very helpful!

Thanks,

Ran

0
Ran
Top achievements
Rank 1
answered on 02 Dec 2015, 12:47 PM

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

0
Accepted
Vladimir Iliev
Telerik team
answered on 03 Dec 2015, 10:29 AM
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!
 
Tags
Scheduler
Asked by
Ran
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Ran
Top achievements
Rank 1
Share this question
or