Get the value of another dialog from the grid dialog and set it in the text box
Hi
I can't speak English. So I use Google Translate.
Please understand if the explanation is not natural.
I am using grid dialog edit mode.
Get the value of another dialog from the grid dialog and set it in the text box
I got the value from another dialog but I don't know how to set the value in the textbox.
Any help to me would be appreciated.
@{SD12000.QuoDtl QuoDtl = (context as SD12000.QuoDtl);btnQuoSpecTop10_onclick(arg, QuoDtl))">SPEC }
@{
SD12000.QuoDtl QuoDtl = (context as SD12000.QuoDtl);
col-md-12">
FloatLabelType="@(FloatLabelType.Auto)" @bind-Value="@(QuoDtl.QUO_SPEC)">
}
SIGN IN To post a reply.
2 Replies
1 reply marked as answer
JJ
JaeHyeong Jang
October 14, 2020 04:14 PM UTC
Add Code
<GridEditSettings Mode="Syncfusion.Blazor.Grids.EditMode.Dialog" AllowAdding="@bEnableByRole" AllowEditing="@bEnableByRole" AllowDeleting="@bEnableByRole"
ShowDeleteConfirmDialog="true" AllowNextRowEdit="true" NewRowPosition="@NewRowPosition.Bottom" Dialog="DialogParams">
<Template>
@{
SD12000.QuoDtl QuoDtl = (context as SD12000.QuoDtl);
<div>
<div class="form-row">
<div class="form-group col-md-12">
<div class="row">
<div class="col-10">
<SfTextBox Placeholder="@Localizer[nameof(SD12000.QuoDtl.QUO_SPEC)]" FloatLabelType="@(FloatLabelType.Auto)" @bind-Value="@(QuoDtl.QUO_SPEC)"></SfTextBox>
</div>
<div class="col-2">
<SfButton CssClass="w-100 mt-4" IsPrimary="true" @onclick="@((arg) => btnQuoSpecTop10_onclick(arg, QuoDtl))">SPEC</SfButton>
</div>
</div>
</div>
</div>
</div>
}
</Template>
</GridEditSettings>
VN
Vignesh Natarajan
Syncfusion Team
October 15, 2020 10:51 AM UTC
Hi JaeHyeong,
Thanks for contacting Syncfusion support.
Query: “Get the value of another dialog from the grid dialog and set it in the text box I got the value from another dialog but I don't know how to set the value in the textbox”
We have analyzed your query and we suspect that you want to display a value (obtained from dialog) in textbox component. We suggest you to achieve your requirement DefaultValue property of GridColumn. Using DefaultValue property, value can be assigned to particular column while inserting a record. Refer the below UG documentation for your reference
https://blazor.syncfusion.com/documentation/datagrid/editing/#provide-new-item-or-edited-item-using-events – or update the value in Grid events.
Please get back to us with more details if you have further queries or if above solution resolve your query.
Regards,
Vignesh Natarajan
Marked as answer
SIGN IN To post a reply.
- 2 Replies
- 2 Participants
- Marked answer
-
JJ JaeHyeong Jang
- Oct 14, 2020 04:04 PM UTC
- Oct 15, 2020 10:51 AM UTC