Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ListBoxTemplates<TItem> - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ListBoxTemplates<TItem>

    Used to specify custom templates for rendering list in ListBox.

    Inheritance
    System.Object
    Syncfusion.Blazor.SfBaseComponent
    ListBoxTemplates<TItem>
    Namespace: Syncfusion.Blazor.DropDowns
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ListBoxTemplates<TItem> : SfBaseComponent
    Type Parameters
    Name Description
    TItem

    Constructors

    ListBoxTemplates()

    Declaration
    public ListBoxTemplates()

    Properties

    ItemTemplate

    Accepts the template design and assigns it to each list item present in the listbox.

    Declaration
    public RenderFragment<TItem> ItemTemplate { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.RenderFragment<TItem>

    NoRecordsTemplate

    Accepts the template design and assigns it to listbox, when no data is available on the component.

    Declaration
    public RenderFragment NoRecordsTemplate { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.RenderFragment

    Methods

    OnInitializedAsync()

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task
    Overrides
    Syncfusion.Blazor.SfBaseComponent.OnInitializedAsync()
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved