alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class MultiSelectTemplates<TItem>

    Provides templating support for Syncfusion Blazor MultiSelect: enables customization of list items, group headers, selected values, header, and footer content for advanced UI scenarios.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    DropDownsTemplates<TItem>
    MultiSelectTemplates<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 MultiSelectTemplates<TItem> : DropDownsTemplates<TItem>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Type Parameters
    Name Description
    TItem

    The type of item represented in the list and templates; typically a DTO or primitive type bound as data.

    Remarks

    Configure one or more templates (e.g., value, item, header, group) using this class to shape the display and UI experience of the MultiSelect component. See example for usage.

    Examples
    <SfMultiSelect TValue="string" TItem="Country" DataSource="@Countries">
       <MultiSelectTemplates TItem="Country">
          <ValueTemplate>
             @context.Name (@context.Code)
          </ValueTemplate>
       </MultiSelectTemplates>
    </SfMultiSelect>

    Constructors

    MultiSelectTemplates()

    Declaration
    public MultiSelectTemplates()

    Properties

    ValueTemplate

    Specifies a custom template to render each selected value (chip or pill UI) in the MultiSelect input box.

    Declaration
    [Parameter]
    public RenderFragment<TItem> ValueTemplate { get; set; }
    Property Value
    Type Description
    RenderFragment<TItem>

    A render fragment or delegate to Blazor markup for a value chip.

    Remarks

    Use ValueTemplate to control the visual structure of a selected value. It receives the item context of TItem as input.

    Implements

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