DropDownItem<TValue> Class

Represents a key-value pair used in drop-down lists. Provides a trim-safe alternative to anonymous types for data binding with TextProperty and ValueProperty.

Inheritance

Object

DropDownItem<TValue>

Namespace: Radzen

Assembly: Radzen.Blazor.dll

Syntax

public class DropDownItem<TValue>

Type Parameters

Name Description
TValueThe type of the value.

Constructors

DropDownItem<TValue>link

Represents a key-value pair used in drop-down lists. Provides a trim-safe alternative to anonymous types for data binding with TextProperty and ValueProperty.

Declaration
public DropDownItem<TValue>()

Properties

Textlink

Gets or sets the display text.

Declaration
public string Text { get; set; }
Property Value
Type Description
stringGets or sets the display text.

Valuelink

Gets or sets the value.

Declaration
public TValue Value { get; set; }
Property Value
Type Description
TValueGets or sets the value.
An error has occurred. This app may no longer respond until reloaded. Reload 🗙