Declined
Last Updated: 16 Jul 2026 08:41 by ADMIN
Barbara
Created on: 14 Mar 2024 09:00
Category: Scheduler
Type: Bug Report
0
Drag hint has wrong height after changing the snap configuration in Scheduler

Bug report

If the snap option is set at runtime the drag hint of the events starts having wrong height.

Reproduction of the problem

  1. Open the Dojo - https://dojo.telerik.com/@NeliK/ilaziJEr
  2. Try to disable and enable the Switch at the top ( you may need to disable and enable multiple times)
  3. Drag the event

Current behavior

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.

Expected/desired behavior

The drag hint should have the same height as the dragged event.

Workaround

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

Environment

  • Kendo UI version: 2024.1.130
  • Browser: [all ]
1 comment
ADMIN
Neli
Posted on: 16 Jul 2026 08:41

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.