RadGrid for ASP.NET AJAX

RadControls for ASP.NET AJAX

The Combo in Grid online example demonstrates how to load the ComboBox Items on demand in the RadGrid edit form. There are two options to pre-select a value in a RadComboBox when it is nested in a RadGrid EditTemplate:

  • If you populate RadComboBox with data using ASP.NET 2.0 or 3.5 DataSource types, you can simply set the SelectedValue :

        SelectedValue='<%#Bind("CompanyName") %>'

  • When you use Load On Demand or Automatic Load On Demand - you can add the previously selected Item by in the RadGrid OnItemDataBound event when in Edit Mode.

When you delete the text initially displayed in the RadComboBox - Load-On-Demand will fire and will populate the control with Items.

Below are the code snippets from the demo referred above:

For additional information you can review this code library.