Blazor DropDownList - Overview
- EDIT IN TELERIK REPL
- Change Theme
Time to order foodFind restaurants in your area Select a city...
The DropDownList component is part of Telerik UI for Blazor, a professional grade UI library with 100+ native components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.
The Telerik UI for Blazor DropDownList component allows you to select an item from a list of predefined values. You can control the data, sizes and various appearance options. The component also allows you to change what is rendered in its items, body, header and footer through templates.
To use the Telerik DropDownList UI component, you need to add the <TelerikDropDownList> tag to your razor page, populate its Data property with a collection of items, set the TextField and Value field properties with the corresponding model names and bind the value of the dropdown list to a variable (the same type as the one defined in the ValueField parameter).
In this demo, you can see a primary example of cascading dropdown lists. By selecting a value in the Category dropdown list, the corresponding values in the Products component change. You can further enhance the behavior of the Telerik DropDownList by using the built-in features for filtering list items, grouping, virtualization, rendering images and other custom content through templates and integration with the Telerik Form component. The component also includes appearance parameters, allowing you to easily configure the component size, shape and fill mode.
The Telerik DropDownList for Blazor exposes multiple events, such as OnChange, ValueChanged, OnRead and OnBlur, that enable easy handling of logic related to user interactions with the component.