If the snap option is set at runtime the drag hint of the events starts having wrong height.
After changing the snap option at runtime as a result the drag hint height is correct when the snap is set to false, but it has wrong height when the snap is enabled.
The drag hint should have the same height as the dragged event.
move: function(e){
var dragHintEl = $('.k-event-drag-hint')
var dataUid = $('.k-event-drag-hint').attr('data-uid')
var event = $('.k-event[data-uid="'+ dataUid +'"]:not(.k-event-drag-hint)')
var height = $(event).height()
$(dragHintEl).height(height)
},
Dojo - https://dojo.telerik.com/@NeliK/aZArEdof
After additional review of the behavior, it turned out that the behavior is expected. When the snap option is enabled, the scheduler will snap events to the nearest slot during dragging. Thus, it is expected that the drag hint height will be stretched to the closest slot. The behavior is identical when the setOptions is not used, and the Switch is not turned on/off. The start and end times of the event in the hint are also correct.
Regards,
Neli
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.