I have used syncfusion grid control for data entry purposes in Batch Mode.It works fine as per our requirement.I would like to know how to handle multiple Grid Batch Handler in single "Save" button click.Please check my below requirement and advise how to do this.
Parent:-
It has Order Header information which contains three textbox ,four combobox and two date control.
Child 1:-
It has Order Details information with Color Details which contains syncfusion grid control in Batch Mode.
Child 2:-
It has Order size information with Size Details (One color has multiple size Details) which contains syncfusion grid control in Batch Mode.
I would like to know how to save all three details in single save click button.
|
<SfButton OnClick="SaveBatch">SaveBatch</SfButton>
<SfGrid @ref="Grid1" DataSource="@Employees" Height="315px" Toolbar="@(new List<string>(){"Add","Delete","Update","Cancel"})">
...
</SfGrid>
<SfGrid @ref="Grid2" DataSource="@Orders" Toolbar="@(new List<string>(){"Add","Delete","Update","Cancel"})">
...
</SfGrid>
@code{
SfGrid<EmployeeData> Grid1;
SfGrid<Order> Grid2;
public async Task SaveBatch()
{
await Grid1.EndEditAsync();
await Grid2.EndEditAsync();
}
|
Thanks for reply...
but I would like to know how to pass Parent,child1 and child 2 list datasource in saveBatch.
Note:-
Parent ID should be link to child1 ID and child1 ID link to child2 when adding new/updating new record in single click
Please help....
Thanks for clarification
I need second points
want get the current selected record details from parent to Child1 and Child 1 to Child2
Please help its my top most urgent