Files to look at:
- CustomException.cs (VB: CustomException.vb)
- WorldCities.cs (VB: WorldCities.vb)
- BatchEditScript.js (VB: BatchEditScript.js)
- Default.aspx (VB: Default.aspx)
- Default.aspx.cs (VB: Default.aspx)
In this example, the combo box in the City column (the City combo box) is populated dynamically with city names via callbacks, based on the value selected in the combo box in the Country column (the Country combo box).
You can find detailed steps by clicking below the "Show Implementation Details" link .
MVC:
GridView - A simple implementation of cascading comboboxes in Batch Edit mode
See also:
ASPxGridView - How to implement cascading combo boxes in Batch Edit mode by using WebMethods
In v16.1, we supported the callback mode for GridViewComboBoxColumn and the EditItemTemplate implementation is not necessary. The main steps are:
1) Use the client-side ASPxClientGridView.BatchEditStartEditing event to check the main combo box value and update the child combo box data (if it's necessary).
2) Handle the SelectedIndexChanged event to send callbacks when a user changes a value in the main combo box.
3) Use an ASPxHiddenField to pass information about the last selected value in the main editor to the server. This step is necessary to update data on a custom callback and to be able to get the last selected value when filtering is performed.
4) Handle the ASPxClientComboBox.EndCallback event for the second editor to select an item after a custom callback.