Hi Biagio,
Greetings from Syncfusion
support
Query:” I want the grid to prepare for a
new staff and then to insert more data into the grid as if it were an "ADD
". How can I solve?”
We prepared a sample based on
your requirements using OnActionComplete event. ActionComplete will be
triggered once the actions are completed.So kindly refer to the attached code
snippet and solution sample for your reference.
Reference Link: https://blazor.syncfusion.com/documentation/datagrid/events#onactioncomplete
|
<GridEvents OnActionComplete="ActionCompletedHandler" TValue="Order"></GridEvents>
public void
ActionCompletedHandler(ActionEventArgs<Order>
args)
{
if(args.RequestType == Syncfusion.Blazor.Grids.Action.Save
&& args.Action == "Add"
)
{
Grid.AddRecordAsync();
}
}
|
Regards,
Prathap S
Attachment:
BlazorGrid_(2)_17e589e1.zip