Hi Tommy,
Greetings from Syncfusion support.
Yes, we can define the contents of edit dialog as a separate component. We have prepared a sample to contain the contents of Dialog template editing as a separate component. Please download and refer the sample from the link below,
Please refer the codes below,
|
<GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" Mode="@EditMode.Dialog">
<Template Context="innertemplate">
@{
var contextval = (innertemplate as Order);
}
<FirstEditDialog Contextvalue="contextval"></FirstEditDialog>
</Template>
</GridEditSettings>
[FirstEditDialog.razor]@using Syncfusion.Blazor.Inputs@using ServerApp.Data <SfTextBox ID="CustomerName" @bind-Value=@Contextvalue.CustomerName ...></SfTextBox> @code { [Parameter] public Order Contextvalue{ get; set; }}
|
Please get back to us if you need further assistance.
Regards,
Renjith R