Telerik RadComboBox provides a convenient mechanism that allows you to define the structure of a combobox inline, directly in the ASPX/ASCX file. To do this you need to enclose every RadComboBoxItem definition within the <rad:RadComboBoxItem> and </rad:RadComboBoxItem> tags.

The inline definition of the combobox shown by the screenshot above looks like this:
| |
Copy Code |
|
<rad:RadComboBox id="RadComboBox1" runat="server" SkinsPath="~/RadControls/ComboBox/Skins"> <Items> <rad:RadComboBoxItem runat="server" Text="RadComboBoxItem1" /> <rad:RadComboBoxItem runat="server" Text="RadComboBoxItem2" /> <rad:RadComboBoxItem runat="server" Text="RadComboBoxItem3" /> </Items> </rad:RadComboBox> |
You can use the Visual Studio designer and the
Build RadComboBox command to define your combobox structure.
See Also