Response part 2:
Please find the response for achieving the remaining constraints in the EJ2 Grid control below,
Constraint: “Editable and also read only columns (calculated values from other cells)”
You can enable CRUD actions in the Grid by using its editSettings property. More details on achieving this functionality can be checked in the below links,
Grid edit documentation: https://ej2.syncfusion.com/aspnetcore/documentation/grid/edit/
Grid edit online sample: https://ej2.syncfusion.com/aspnetcore/Grid/InlineEditing#/material
You can also disable editing for particular columns by disabling the allowEditing property in the required column definition. More details on this can be checked in the below documentation link,
Disable editing documentation: https://ej2.syncfusion.com/aspnetcore/documentation/grid/edit/#disable-editing-for-particular-column
And for calculating values from other cells, you can use the columns valueAccessor property. More details on achieving this functionality can be checked in the below link,
Value accessor documentation: https://ej2.syncfusion.com/aspnetcore/documentation/grid/columns/#valueaccessor
Constraint: “User could paste multiple values in an editable column”
You can paste copied values into the Grid columns by copying the required value, selecting the required cell and pressing the ctrl + v key. More details on achieving this functionality can be checked in the below link,
Paste documentation: https://ej2.syncfusion.com/aspnetcore/documentation/grid/clipboard/#paste
Constraint: “Column values should be loaded and updated in db”
Based on the query we would like to let you know that the EJ2 Grid supports the following in-built adaptors to communicate with the data source in the back-end – URL, OData, ODataV4, Remote Save, Web API and WebMethod adaptor. Each adaptor uses a different way to send and receive requests and response from remote services. They are explained in the below documentation link which you can check for more details,
Documentation: https://ej2.syncfusion.com/aspnetcore/documentation/grid/data-binding/#remote-data
URL adaptor: https://ej2.syncfusion.com/aspnetcore/documentation/grid/edit/#url-adaptor
If you need to access the data from your db through server controller methods then our suggestion is to use the URL adaptor for it.
Please find the below ASP.NET Core sample prepared based on the above queries for your reference,
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/GridApplication-1263864030
Note: A local MDF file is used in the above sample to assign and process the data. So before running the sample, please make sure the connection for this file is established in the server explorer and the correct connection string is provided OrderDbContext.cs file in the application.
Regards,
Sujith R