alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class ComboBoxTemplates<TItem>

    Provides customization options for rendering list items, group titles, headers, and footers in the ComboBox component.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    DropDownsTemplates<TItem>
    ComboBoxTemplates<TItem>
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnInitializedAsync()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.Dispose(bool)
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    Namespace: Syncfusion.Blazor.DropDowns
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ComboBoxTemplates<TItem> : DropDownsTemplates<TItem>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Type Parameters
    Name Description
    TItem

    The type of items used in the ComboBox templates.

    Remarks

    This class extends Syncfusion.Blazor.DropDowns.Internal.DropDownsTemplates<TItem> to provide specific template customization for the SfComboBox<TValue, TItem> component.

    Examples
    <SfComboBox TValue="string" TItem="string" DataSource="@MyList">
        <ComboBoxTemplates>
            <ItemTemplate>
                <span style="color: blue;">@context</span>
            </ItemTemplate>
        </ComboBoxTemplates>
    </SfComboBox>
    @code {
        protected List<string> MyList = new List<string> { "Apple", "Banana", "Orange" };
    }

    Constructors

    ComboBoxTemplates()

    Declaration
    public ComboBoxTemplates()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved