We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Get edited row - event

Thread ID:

Created:

Updated:

Platform:

Replies:

150928 Jan 24,2020 01:27 PM UTC May 4,2020 08:35 AM UTC Blazor 3
loading
Tags: Grid
Soren Markersen
Asked On January 24, 2020 01:27 PM UTC

Hi - Mabey I should just stick with backend, because I cant seem to figure out what event fires when working with grids. 
I have implemented your example on Inline Editing, from the Blazor demos, and want to call a method when a edit ends by leaving the row, or button "update" press. 

For us frontend newbies there a not many examples on events in your democode.. 

My goal is to get the new fields values form row, to save in DB.

/Soren  

Renjith Singh Rajendran [Syncfusion]
Replied On January 27, 2020 06:40 AM UTC

Hi Soren, 

Thanks for contacting Syncfusion support. 

We will be triggering two events(OnActionBegin, OnActionComplete) when performing CRUD operations in Grid. Based on your requirement, we suggest you to bind the OnActionBegin event to Grid. You can fetch the current edited row data in the “args.Data” of this event’s handler. 

Please use the code below, 

 
<EjsGrid DataSource="@Orders"> 
   <GridEvents OnActionBegin="OnActionBegin" TValue="Order"></GridEvents> 
    ... 
</EjsGrid> 
 
@code{ 
    ... 
   public void OnActionBegin(ActionEventArgs<Order> args) 
    { 
        if(args.RequestType.ToString() == "Save") 
        { 
            // Here you can fetch the current edited data using "args.Data" 
        } 
    } 
} 


Please refer the screenshot below, 

 

Please get back to us if you need further assistance. 

Regards, 
Renjith Singh Rajendran. 


Soren Markersen
Replied On May 1, 2020 02:40 PM UTC

Hi - this worked fine until I upgrated, from 17.4.0.55,  to 18.1.0.45, now I dont get the ActionEventArgs for RequestType == "Save".
What have changes? 

Renjith Singh Rajendran [Syncfusion]
Replied On May 4, 2020 08:35 AM UTC

Hi Soren, 

Thanks for your update. 

We suggest you to ensure to modify your sample based on the below breaking changes. Please refer the breaking changes from the release notes, 

We tried to reproduce the reported problem by creating a sample with 18.1.0.45 version. But we are not able to face the reported problem from our side. We are attaching the sample which we have tried from our side for your reference. Please download the sample form the link below, 
 
Please refer the screenshot from the link below, 

 

And if you are still facing difficulties, then kindly get back to us with the following details for better assistance. 

  1. Share the sample which you have tried from your side.
  2. Or reproduce the problem with the attached sample and share with us for further analysis.
  3. Share the exact scenario you are facing the problem.
  4. Share a video demo explaining the problem you are facing.

The provided information will help us analyze the problem, and provide you a solution as early as possible. 

Regards, 
Renjith Singh Rajendran 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon