I have refer below link to use External Form Editing.It works fine as per given demo.but I would like to know how to update data in Grid Data source using batch mode. I have tried below source to update "Edited Record from external form" but "args.BatchChanges.ChangedRecords" list return null value
protected async Task BatchSaveHandler(BeforeBatchSaveArgs<StyleBomLeatherSetup> args)
{
styleBomLeatherSetupDetails.InsertDetails = args.BatchChanges.AddedRecords;
styleBomLeatherSetupDetails.EditDetails = args.BatchChanges.ChangedRecords;
styleBomLeatherSetupDetails.DeletedDetails = args.BatchChanges.DeletedRecords;
}
Blazor DataGrid External Form Editing Example - Syncfusion Demos
Please help,
Its my top most urgent task
Thanks for reply..
Instead of "SetRowData" method, which method we are going to use to solve our above issue. Kindly revert back as soon as possible.
Note:
I have use below code to add new record from "external edit form".It works fine and batch handler also working fine.I would like to know how to do for record updating using external form
public async Task AddRowInBatch()
{
await gridRef.AddRecordAsync(styleBomLeatherSetup);
{
Please help
Awaiting for soonest reply
public async Task Save()
{
if (SelectedData.OrderID != null)
{
//await this.Grid.SetRowData(SelectedData.OrderID, SelectedData);
var Index= await Grid.GetRowIndexByPrimaryKeyAsync(SelectedData.OrderID);
await Grid.UpdateCellAsync(Index, "CustomerID", SelectedData.CustomerID);
await Grid.UpdateCellAsync(Index, "Freight", SelectedData.Freight);
await Grid.UpdateCellAsync(Index, "OrderDate", SelectedData.OrderDate);
await Cancel();
}
} |
Thanks solved my problem