I am trying to populate a rad combo box via a object data source, but I cannot seem to access it when I put it into a RadRibbonBar.
Am I missing something? Here is what I have:
<telerik:RadRibbonBar runat="server"> <telerik:RibbonBarTab Text="Home"> <telerik:RibbonBarGroup Text="Selections" > <Items> <telerik:RibbonBarTemplateItem> <telerik:RadComboBox ID="versionList" Label="Version" runat="server" DataTextField="Version.Name" DataValueField="Version.ID" > </telerik:RadComboBox> </telerik:RibbonBarTemplateItem> </Items> </telerik:RibbonBarGroup> </telerik:RibbonBarTab> </telerik:RadRibbonBar> In my code, versionList is not recognized as an object and I cannot bind to it. As shown below. "versionList" is not defined.
versionList.DataSource = version.Items; What am I doing wrong?