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. Image for the cookie policy date

Grid - Get rows data using javascript

Hello,

In Asp.Net Core, I'm using the ejs2 Grid with the editable options along with some other fields in the form.

I would like to update all the fields together at the same time, so I would like to get the grid data in a javascript function triggered by a save button. I could then construct a json object on client side with modified rows data to send to the api using an Ajax Post for updating.

Is it possible? Do you see a better option?

Thank you



1 Reply

HS Hemanthkumar S Syncfusion Team April 7, 2023 02:32 PM UTC

Hi Michael,


Query: Construct a json object on client side with modified rows data


The actionBegin event triggers when Grid actions such as sorting, filtering, paging, grouping, etc., start. With the help of actionBegin event, we can get the data when saving the row by clicking the save button. Based on your update, we recommend that you construct a JSON object and modify the rows data in the actionBegin event of the Grid.


For more information, please refer to the below documentation and demo sample.

Action Begin Documentation: https://ej2.syncfusion.com/documentation/api/grid#actionbegin

Action Begin Demo Sample: https://ej2.syncfusion.com/aspnetcore/Grid/InlineEditing#/fluent


If you require further assistance, please do not hesitate to contact us. We are always here to help you.


Regards,

Hemanth Kumar S


Loader.
Live Chat Icon For mobile
Up arrow icon