Skip to content

Implement cascading combo boxes in the edit form of the DevExpress Blazor Grid component.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/blazor-dxgrid-cascading-combo-boxes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grid for Blazor - How to implement cascading combo boxes

This example demonstrates how to implement cascading combo boxes in the edit form of the DevExpress Blazor Grid component.

Cascading Combo Boxes

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.

Files to Look At

Documentation

More Examples

About

Implement cascading combo boxes in the edit form of the DevExpress Blazor Grid component.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •