I have attached project files since pasting code doesn't seem to have worked.
[Index.razor]
<EjsGrid id="Grid" AllowPaging="true" AllowSorting="true" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Cancel", "Update" })">
<EjsDataManager json="@gridData" Adaptor="Adaptors.JsonAdaptor"></EjsDataManager>
...
</EjsGrid>
@functions{
public OrdersDetails[] gridData { get; set; }
protected override void OnInit()
{
gridData = OrdersDetails.GetAllRecords().Cast<OrdersDetails>().ToArray();
}
}
|
Hi Mark,
Thanks for contacting Syncfusion support.
We have validated the defect “Script error thrown when perform editing in Grid” you have initiated with us. Thank you for taking the time to report this issue 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 Volume 2, 2019 Beta release.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.
Until then we suggest you to use the “JsonAdaptor” of DataManager to overcome the problem you are facing. We have modified the sample, which you have shared with us. And we are attaching the sample for your convenience, please download the sample from the link below,
[Index.razor]<EjsGrid id="Grid" AllowPaging="true" AllowSorting="true" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Cancel", "Update" })"><EjsDataManager json="@gridData" Adaptor="Adaptors.JsonAdaptor"></EjsDataManager>...</EjsGrid>@functions{public OrdersDetails[] gridData { get; set; }protected override void OnInit(){gridData = OrdersDetails.GetAllRecords().Cast<OrdersDetails>().ToArray();}}
Please get back to us if you need further assistance.
Regards,Renjith Singh Rajendran.