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 |
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 |
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 |
Remarks
For advanced scenarios, this name lets you distinguish event sources when handling multiple ListBox operations.
Examples
var evtName = args.Name;