Blazor DropDownList - Overview

Time to order food

Find restaurants in your area
  • Overview.razor
  • DestinationService.cs
  • DestinationDto.cs
  • OrderFoodTemplate.razor
Loading the demo source code...please wait.

Style in ThemeBuilder

  • Custom SASS variables
  • Atomic customizations
  • Sharing projects
Start Theming
blazor ui ninja image

The DropDownList component is part of Telerik UI for Blazor, a professional grade UI library with 110+ native components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.

Description

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.

This Blazor DropDownList Overview example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.

Support & Learning Resources

Additional Resources

An error has occurred. This application may no longer respond until reloaded.