OnActionBegin / ActionCompleted behavior

Hi!

Given that we set-up a simple project in blazor server side and use aforementioned events to perform some database operations, are presented behaviors normal?

  • When modifying recurring appointment - deleting single occurrence - OnActionBegin will give us source  version of appointment series (base occurrence) with recurrence id the same as base id, and only ActionCompleted will give us the actually modified appointment (with noted iso time exception)
  • When modifying recurring appointment - changing single occurrence - OnActionBegin will act simillar, also will provide additional modified data (let's say new subject) - so only the modified appointment occurrence is given, but on ActionComplete again, modified occurrence is given with correct recurrence id, correct time in recurrence exception as ADDED and only here, as MODIFIED, base appointment is also given with updated recurrence exception.

Are those behaviors planned, or should all created / edited data be available in OnActionBegin so they can be verified, uploaded to db or, if needed, an exception wou


1 Reply

NR Nevitha Ravi Syncfusion Team August 11, 2021 03:33 PM UTC

Hi Henryk, 

Greetings from Syncfusion Support. 

Yes this a default and intended behavior, since the action may get failure we have provided the updated details in ActionCompleted event alone. If you need to save and update the appointments to database you can use built-in adaptors from Datamanager which will have the updated appointment details on each CRUD actions. Please refer to the following UG link for the same. 

Please let us know if you need any further assistance. 

Regards, 
Nevitha 


Loader.
Up arrow icon