Lists & dropdowns
DropDownListControl · DropDownGridControl · ListBoxControlLet users pick from a list: a dropdown, a searchable lookup grid or checkboxes.
Overview
DropDownListControl is a Blazor dropdown that lets users pick one item from a list, or type an unlisted value when it is editable. Use DropDownGridControl instead when the list is long or needs columns, such as 4,009 airports searched by code or city, and ListBoxControl when every option should stay visible as radio buttons or checkboxes. All three take any item type.
Examples
#Pick a destination
Start a quote: pick a Destination; Flying from is Editable, so type a city that is not listed and press Enter. Mark the quote sent and Enabled locks both.
Quote for Hermione Ranger No destination yet, flying from London Draft: both fields can still change.
#Pick two airports from a 4,009-row grid
Search 4,009 airports by code, city or country, pick two, and the page works out the distance between them. The boxes start on London Heathrow and Naples, the airport for the Amalfi trip below.
LHR → NAP: London Heathrow Airport, United Kingdom to Naples International Airport, Italy. Great-circle distance 1,630 km (1,013 miles).
#Choose several travelers
Check who is going to Amalfi in a Multiple list of two columns; Lead traveler lists only those and keeps one choice, and its switch sets ShowCheckbox, so a check box replaces each radio button and the choice can be cleared.
Who is going to Amalfi
Lead traveler
2 going: Albus Door, Hermione Ranger · Lead traveler: Hermione Ranger