This is a migrated thread and some comments may be shown as answers.

[Solved] How to populate data for multi-column RadComboBox dynamiclly?

0 Answers 147 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Hong
Top achievements
Rank 1
Hong asked on 24 Jun 2009, 01:48 PM
<telerik:RadComboBox Width="150px" CssClass="ddlText" ID="UnionRadComboBox" runat="server" DataSourceID="dsUnionInfo" AppendDataBoundItems="true" DataTextField="Union_ID" DataValueField="Union_ID" Skin="Outlook" DropDownWidth="250px" SelectedValue='<%# Bind("Union_ID") %>' > 
<items>                                                       <telerik:RadComboBoxItem Text="" Value = "" runat="server" /> 
</items> 
<headertemplate> 
<table class="ddlText" style="width: 250px; text-align: left; line-height: 10px">  
<tr> 
  <td style="width: 100px;">  
     Union ID</td> 
  <td style="width: 150px;">  
     Description</td> 
</tr> 
</table> 
</headertemplate> 
<itemtemplate> 
<table class="ddlText" style="width: 250px; text-align: left; line-height: 10px">  
<tr> 
   <td style="width: 100px;">  
      <%#DataBinder.Eval(Container.DataItem, "Union_ID")%> 
   </td> 
   <td style="width: 150px;">  
      <%#DataBinder.Eval(Container.DataItem, "Union_Description")%> 
   </td> 
</tr> 
</table> 
</itemtemplate> 
</telerik:RadComboBox> 
I have a 2-column RadComboBox as defined above. My question is how to populate data for those 2 columns in the "ItemsRequested" method dynamiclly in the code-behind file? 

Thanks,
Hong

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
Hong
Top achievements
Rank 1
Share this question
or