Our Black Friday offer is live! Apply code BLACKFRIDAY2026 at checkout and save $100 / €100. See Pricing
Bind the Blazor DropDown to custom objects or enums, using TextProperty and ValueProperty to control the display text and the bound value.
Bind a DropDown directly to an enum type for easy selection of enumeration values.
Set Data to your object collection and set TextProperty to the property shown in the list and ValueProperty to the property bound to Value.
Bind Data to the enum values (for example Enum.GetValues) and bind Value to the enum field; the DropDown displays each name and stores the selected enum value.
Radzen Blazor Components, © 2018-2026 Radzen.
Source Code licensed under
MIT
On this page