When delete a row from UI, the ActionEventArgs' Action property of OnActionComplete event set to null

Hi team,

I rely on ActionEventArgs' Action property to differentiate the types of user update actions. While the "add" and "edit" set properly to the Action property, the delete action leaves the property to null when OnActionComplete event being triggered. I think it's a bug to be fixed. please check for that. Thanks.

Regards.

3 Replies 1 reply marked as answer

PS Pavithra Subramaniyam Syncfusion Team June 23, 2020 12:37 PM UTC

Hi Brian, 
 
Thanks for contacting Syncfusion support. 
 
Since the “OnActionComplete” event RequestType will be same (Save) for both add and update , the “action” property has been added to differentiate them. But in case of delete there is no need for differentiation the action property. So we suggest you to use the “RequestType” property  to achieve your requirement. 
 
 
public async void ActionComplete(ActionEventArgs<Order> args) 
   if (Args.RequestType == Syncfusion.Blazor.Grids.Action.Delete) 
        { 
            // You can handle the delete 
        } 
 
Please get back to us if you need further assistance on this. 
 
Regards, 
Pavithra S 


Marked as answer

BR Brian June 23, 2020 11:53 PM UTC

Thanks, it's a workable advice, but as a meaningful property for indication, I think it's reasonable to explicitly set ActionEventArgs.Action to "delete" other than leaving it as null. Please rethink about it.

Regards.


PS Pavithra Subramaniyam Syncfusion Team June 24, 2020 10:19 AM UTC

Hi Brian, 
 
We have confirmed the reported scenario as a bug. Thank you for taking the time to report this issue “Searching is not working properly with DateTime object” and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle ) and including the defect fix in our weekly patch release which is expected to be rolled out on or before 15th July 2020. 
 
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link. 
 
 
Till then we appreciate your patience. 
 
Regards, 
Pavithra S 


Loader.
Up arrow icon