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

Lock vertical position while dragging

2 Answers 83 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Lala
Top achievements
Rank 1
Lala asked on 02 Jun 2014, 09:23 AM
Hi

I have a scheduler with horizontal grouping (rooms in my case). Kendo already gives the ability to move an event from one resource column to an other (move events between rooms). But is there a way to lock the element in vertical (time) position while dragging? The events only give me the slot and scheduler element and not the currently dragged entry. Sure, I could do a repositioning by comparing moveStart and moveEnd, but keeping the element in the same time range during dragging would be the better behavior. Any advice?

Regards,
Patric

2 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 03 Jun 2014, 10:04 AM
Hi Patric,

I'm afraid that such functionality is not available. However, you may achieve similar function by constraining the user on where the event can be moved to. I have prepared a small test page which demonstrates a possible implementation. Note the use of move and moveEnd events.

Regards,
Rosen
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Lala
Top achievements
Rank 1
answered on 03 Jun 2014, 01:51 PM
Hi Rosen

Thank you for your example. This is not really what I was hopping for, but a good alternative.

Tried to find a way by getting the event position and applying it to the hint element but its a bit buggy and leads to a reference error now and then....

Regards
Patric
Tags
Scheduler
Asked by
Lala
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Lala
Top achievements
Rank 1
Share this question
or