This example demonstrates how to implement cascading combo boxes in the edit form of the DevExpress Blazor Grid component.
In the example, the Grid's edit form displays cascading Country and City combo boxes. The Country combo box is bound to a constant list of countries, while the City combo box gets its data from a dynamically generated list of cities based on the selected country. Values of the combo boxes correspond to the edit model's Country
and City
fields.
Once you change the Value of the Country combo box, its ValueChanged event occurs. The event handler assigns the new value to the edit model's Country
field and sets the City
field value to null
. The example code generates a list of the cities in the selected country and assigns the list to the Data property of the City combo box.
(you will be redirected to DevExpress.com to submit your response)