Hello Syncfusion Team,
I would like to know whether it is possible and supported to use a custom MultiColumnComboBox inside an SfInPlaceEditor when it is rendered within an SfGrid column template in Blazor.
My goal is to edit a single field in a grid row using SfInPlaceEditor. However, instead of using a simple input or standard dropdown, I want to use a custom component (internally based on a MultiColumnComboBox) to select a value.
Scenario
The scenario I am trying to implement is the following:
SfGrid with a column using Template
Inside the template, an SfInPlaceEditor
SfInPlaceEditor configured with InputType.Template
Inside InPlaceEditorTemplate, a custom component (ConceptComboBox)
The expected behavior is:
The value can be selected from the ComboBox
The SfInPlaceEditor closes after selection
OnActionSuccess is triggered with the updated selected value
Code Sample
<GridColumn Field="Concept" HeaderText="Concept" MinWidth="160" Width="160">
<Template>
@{
var data = (context as ConceptModel)!;
}
<SfInPlaceEditor ShowButtons
EmptyText="@data.Concept"
Type="Syncfusion.Blazor.InPlaceEditor.InputType.Template"
@bind-Value="data.ConceptId"
TValue="int?">
<InPlaceEditorTemplate>
<ConceptComboBox @bind-Value="data.ConceptId"
Placeholder="Concept" />
</InPlaceEditorTemplate>
<InPlaceEditorEvents TValue="int?"
OnActionSuccess="@OnSuccessHandler">
</InPlaceEditorEvents>
</SfInPlaceEditor>
</Template>
</GridColumn>
Issue
The value received in OnSuccessHandler is not the newly selected value from the ConceptComboBox.
Instead, it always receives the original value that existed before editing.
This indicates that the updated value from the custom MultiColumnComboBox is not being propagated to the SfInPlaceEditor lifecycle before OnActionSuccess is triggered.