OnActionComplete event handler does not contain right previous data in Grid.

Hi Great Support,
In my simple grid there is  OnActionComplete="ActionCompletedHandler"  event

When i made edit operation ActionCompletedHandler  "args.previousData" contains new entered values, Not previous values.


3 Replies 1 reply marked as answer

JP Jeevakanth Palaniappan Syncfusion Team August 7, 2020 08:51 AM UTC

Hi Blazor, 
 
Greetings from Syncfusion support. 
 
From your query we understand that in OnActionComplete event, you are getting the new entered values in args.PreviousData. This is because the data gets saved in the DataSource when OnActionComplete events gets triggered and so this is not an issue. This is the default behavior in grid editing.  
 
We have provided the PreviousData information only to do any customization before saving the edited data in the OnActionBegin event(Before saving the data OnActionBegin event triggers with RequestType as Save, in which the args.Data will have the edited data and the args.PreviousData will have the original data(old data) present in the datasource). 
 
Please get back to us if you need further assistance. 
 
Regards, 
Jeevakanth SP. 


Marked as answer

BL Blazor August 7, 2020 11:02 AM UTC

Hi Jeevakanth ,
Thanks for the helpful explonation. I will use 
OnActionBegin event then.


VN Vignesh Natarajan Syncfusion Team August 10, 2020 04:20 AM UTC

Hi Ahmet,  

Thanks for the update.  

We are glad to hear that you have resolved your query using our solution.   

Kindly get back to us if you have further queries. 

Regards, 
Vignesh Natarajan 


Loader.
Up arrow icon