Drag and drop/resize same event for multiple users

Hi, I am developing an app that loads events to show them in the scheduler in a monthly timeline. Some of these events are assigned to multiple users, so when I load them I create one for each user, within the object I have a unique id to make the scheduler work correctly and the original id to know which events are the same. When I modify them via drag and drop or resize I update all the events in the state that have the same original id with the new dates and the scheduler renders again. Is it possible to avoid this rerender? Is there a way to handle events that are assigned to multiple users natively?

Thank you,

Matteo


3 Replies 1 reply marked as answer

BS Balasubramanian Sattanathan Syncfusion Team December 20, 2021 03:44 PM UTC

Hi Matteo,

Greetings from Syncfusion Support.

We have validated your requirement at our end and suspect that your need is to have the shared events like if we change the appointment details of one appointment and it will be reflected to its grouped appointments. We let you know that it can be possible by enabling allowGroupEdit property of the scheduler like the below sample and also we can prevent the re-render of components when the state change by using the shouldComponentUpdate native method.

Sample: https://stackblitz.com/edit/react-schedule-group-edit?file=index.js
API: https://ej2.syncfusion.com/react/documentation/api/schedule/groupModel/#allowgroupedit
UG: https://ej2.syncfusion.com/react/documentation/schedule/resources/#working-with-shared-events

Kindly refer to the above solution and let us know if you need further assistance.

Regards,
Balasubramanian S


Marked as answer

MA matteomessmer December 24, 2021 09:49 AM UTC

Thank you, it works perfectly

Best regards,

Matteo Messmer



VM Vengatesh Maniraj Syncfusion Team December 28, 2021 03:24 AM UTC

Hi Matteo,


You are most welcome.


Regards,

Vengatesh


Loader.
Up arrow icon