Dropdown From Enum (Binding to Enum)

Maybe you can use a dropdown populated from an enumeration component that allows you to bind to the selected enumeration. It’s not likely you’re storing enumerations in your database but enumerations are more general purpose since you can cast them to the integer value or get the string value with the ToString method.

So I put one together and named it SelectEnumBindEnum. You can find the code for the component and an example in Blazor Component Authority Demonstration. You’ll also find all the other components I’ve created so far for this project there along with the code for the demonstration examples. If you find any of the components there useful or have a suggestion for improvement please leave a comment. Thanks for reading.

Input Helper

Integer Input

Changing History

Site Footer

Sliding Sidebar