Drag and Drop appointment, is there any way to change the time indicator display interval?

I don't need the time indicator to include every minute, mostly because this makes it hard to land the appointment exactly where you want it.  I would like to have the interval be in 5 minute increments.  So the time indicator would be like 10:10, 10:15, 10:20 instead of 10:10, 10:11, 10:12.  Is there a way to do this?

Thank you for any help you can provide.

1 Reply

DY Deivaselvan Y Syncfusion Team October 19, 2018 01:00 PM UTC

Hi John,

 
Thank you for contacting Syncfusion support. 

Currently, schedule doesn’t have support to adjust the time indicator display interval, but you can achieve this by sample level using ShowTimeIndicator property of DragandDropSettings in schedule, we have prepared a simple sample for the same.

Code Example: 
schedule.AppointmentDragOver += Schedule_AppointmentDragOver; 
 
private void Schedule_AppointmentDragOver(object sender, AppointmentDragEventArgs e) 
        { 
            var time = e.DraggingTime; 
            if (time.Minute % 5 != 0) 
            { 
                schedule.DragDropSettings.ShowTimeIndicator = false; 
            } 
            else 
            { 
                schedule.DragDropSettings.ShowTimeIndicator = true; 
            } 
        } 
Please find the attached sample for the same from the below link and let us know if this helps you. 
 
 
Regards,
Deivaselvan 


Loader.
Up arrow icon