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.
Object
Namespace: Radzen
Assembly: Radzen.Blazor.dll
public class DropDownItem<TValue>| Name | Description |
|---|---|
| TValue | The type of the value. |
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.
public DropDownItem<TValue>()Gets or sets the display text.
public string Text { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the display text. |
Gets or sets the value.
public TValue Value { get; set; }
| Type | Description |
|---|---|
| TValue | Gets or sets the value. |