Can't drag/resize Appointment when OnDragStart/OnResizeStart is used


Hey guys, im just having a strange issue with the resizing and dragging of appointments in the scheduler:

When I want to use the OnResizeStart und OnDragStart events like this the actions get aborted immideatly . 

<ScheduleEvents TValue="AppointmentDataDto" OnActionBegin="OnActionBegin" OnCellClick="OnCellClick" OnEventClick="OnEventClick"
OnPopupOpen="OnPopupOpen" OnPopupClose="OnPopupClose" OnResizeStart="OnResizeStarted" OnDragStart="OnDragStarted">
ScheduleEvents>

Our OnResizeStarted method doesn't do anything atm, it's just an empty method. When I remove the 'OnResizeStart="OnResizeStarted" ' part then the resizing works again.

Sadly I was not able to create an example project for this case, but I recognized the possible issue in the SfSchedule.OnResizeStart method of your code, line 409:

AppointmentData eventData = this.EventProcessed.FirstOrDefault>((Func, bool>) (x => x.Guid.ToString().Equals(eventGuid, StringComparison.Ordinal)));


This line looks for an appointment with the given eventGuid, but no appointment has that guid. Any ideas how this can happen? What further informations do you need?

Best regards
Patrick

 

   



1 Reply 1 reply marked as answer

PN Praveenkumar Narasimhanaidu Syncfusion Team June 1, 2021 11:52 AM UTC

Hi Patrick, 

Greetings from Syncfusion support..! 

We have validated your reported problem “Can't drag/resize Appointment when OnDragStart/OnResizeStart is used” and let you know that, we have maintained unique GUID for each appointments internally for internal purpose. We have tried to replicate the issue at our end but were unable to replicate it. 


Kindly try the above sample and if the issue still persists at your end, please share following details to provide a prompt solution. 
  • Share your entire scheduler code snippets and NUGET version
  • Whether the issue is random one or occurs on every resizing action?
  • Whether the issue occurs on specific appointment like all-day event, recurrence event?
  • Share a video demo of issue replication procedure
  • Try to replicate the issue in our shared sample or
  • Share any issue reproducing sample(if possible)

Regards, 
Praveenkumar 


Marked as answer
Loader.
Up arrow icon