menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class BeforeItemRenderEventArgs<T> - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class BeforeItemRenderEventArgs<T>

    Provides event data for the OnItemRender event, which occurs before rendering an item in the SfListBox<TValue, TItem> component.

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

    The type of item being rendered (usually TItem).

    Remarks

    This class allows you to customize rendering of each item by modifying its properties or content.

    Examples
    private void OnItemRender(BeforeItemRenderEventArgs<Employee> args)
    {
        args.Item = new Employee();
    }

    Constructors

    BeforeItemRenderEventArgs()

    Declaration
    public BeforeItemRenderEventArgs()

    Properties

    Item

    Gets or sets the item currently being rendered.

    Declaration
    public T Item { get; set; }
    Property Value
    Type Description
    T

    The T item for rendering. Default is null.

    Remarks

    Set this property to modify the displayed item or template data.

    Examples
    args.Item = new Employee();

    Name

    Gets the event name associated with item rendering.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String

    A string value that identifies the triggering event. The default value is null.

    Remarks

    For advanced scenarios, this name lets you distinguish event sources when handling multiple ListBox operations.

    Examples
    var evtName = args.Name;
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved