Hi Eduardo,
Thanks for using Syncfusion Products,
We have analyzed your query, the reported issue was reproduced for us and we have already consider this as a feature. As per your requirement, we have created a sample in ASP.NET Core- EJ2, In the below sample, we have used CRUDModel class in Application level. Kindly please refer the below code snippet and sample. CRUDModel class will be move inside of Syncfusion.EJ2 from Volume2. Until then you can use this.
View:
|
<ejs-grid id="Grid" toolbar="@(new List<string>() { "Add", "Update", "Cancel" })" allowPaging="true">
<e-datamanager url="/Home/UrlDatasource" adaptor="UrlAdaptor" insertUrl="/Home/Insert"></e-datamanager>
<e-grid-editSettings allowAdding="true"></e-grid-editSettings>
<e-grid-pagesettings pageCount="5"></e-grid-pagesettings>
. . . . .
</e-grid-columns>
</ejs-grid> |
Controller:
|
public ActionResult Insert([FromBody]CRUDModel<OrdersDetails> value)
{
OrdersDetails.GetAllRecords().Insert(0, value.value);
return Json(value.value);
} |
Regards,
R.Dhivya