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.

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 
 

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
Loader.
Up arrow icon