ODataV4 server request while editing an recurring event - from 195075

Ty Cia


Nov 11, 2024 


I am still seeing some strange behavior with regard to recurring events. When I try to change a property on single recurring event, instead of making a recurrence exception it is changing the entire recurrence series. I can see that the Scheduler is sending a PATCH request to the server to update the recurring event instead of making a POST batch request to add a recurrence exception and update the existing recurrence entry.




Below is a video that shows the expected behavior in the example you have sent, where changing one item in a recurrence send a POST batch request, and the unexpected behavior I am experiencing, where a PATCH request is being sent and thus updating the entire recurrence entry.




https://streamable.com/4vbat3




Thank you


3 Replies 1 reply marked as answer

VR Vijay Ravi Syncfusion Team November 12, 2024 11:52 AM UTC

Hi Ty Cia

The Scheduler uses a PATCH request to update the entire recurrence series because it needs to update the RecurrenceException field in the parent event to reflect the changes made to a single occurrence. This is part of the intended functionality to ensure that the recurring pattern is maintained correctly with exceptions noted.

It seems like the issue might be related to how the server is handling the PATCH request for recurring events. To help you further, I would need to see the relevant parts of your server-side code that handle the PATCH request for recurring events. Specifically, the controller action or method that processes the PATCH request and any related logic for handling recurrence exceptions.

Could you please share the relevant code snippets? Or could your share the issue replicating project.


Regards,

Vijay



TC Ty Cia November 12, 2024 11:23 PM UTC

Hi,


I was able to figure out my issue. My issue was that the entity Id and RecurrenceId in my data model was not the same data type. I had Id as a string and RecurrenceId as an int. Changing RecurrenceId to a string has fixed my issue. You may want to add a warning in the docs about this as it is not easily apparent that this causes the issue I was facing.


Thank you very much for all your help. You have been very helpful.


Marked as answer

VR Vijay Ravi Syncfusion Team November 13, 2024 05:31 AM UTC

Hi Ty Cia,


Thank you for the update. We’re pleased to hear that the solution meets your requirements. Please don’t hesitate to reach out if you need any further assistance; we are here to support you. Additionally, we will be incorporating this information into our documentation in the coming days.


Regards,

Vijay


Loader.
Up arrow icon