RadControls for ASP .NET AJAX version |
Q2 2010 and later
|
.NET version |
3.5 and late |
Visual Studio version |
2008 and later |
Programming language |
C#, VB |
Browser support |
all browsers supported by RadControls for ASP .NET AJAX
|
PROJECT DESCRIPTION
The attached sample project demonstrates how to use the cascading RadComboBoxes into the RadGrid's edit item. When the RadGrid's item is in Edit mode three RadComboBoxes are rendered and the list in the next combo is populated after selecting a value in the previous:
Step 1: Select Continent
Step 2: Select Country
Step 3: Select City
The cascading RadComboBoxes are added into the UserControl which is placed into the RadGrid.MasterTableView.FormTemplate:
ASCX:
When the RadGrid's edit form is loaded the user RadComboBoxes are populated with data and the appropriate items are selected:
On the Insert/Update command of the RadGrid you could get the city Id from the last RadCombobox by using the following code snippet: