Skip to main content
All docs
V24.2

DxComboBox<TData, TValue>.EditBoxTemplate Property

Specifies a template used to display the ComboBox’s item in the edit box.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public RenderFragment<TData> EditBoxTemplate { get; set; }

Property Value

Type Description
RenderFragment<TData>

The template content.

Remarks

You can use the EditBoxTemplate property to customize the appearance of a ComboBox item displayed in the edit box. It can be the selected item or the focused item when a user tries to select it, but has not submitted this action yet.

<DxComboBox Data="@Items"
            @bind-Value="@Value">
    <EditBoxTemplate>
        Selected item: @context 
    </EditBoxTemplate>
</DxComboBox>

@code {
    string Value { get; set; } = "Low";
    IEnumerable<string> Items = new List<string>() { "Low", "Normal", "High" };
}
See Also