I am having trouble getting the text to show up next to the checkbox in the following code:
I am populating this drop-down on a postback from another drop-down as below:
The checkboxes do show up, but the text from the <%# DataBinder.Eval(Container, "text") %> does not show up. How can I get text populated next to the checkboxes?
Cheers
Rob
| <telerik:RadComboBox ID="FieldsToInclude" runat="server" AllowCustomText="false" EmptyMessage="* (all)" HighlightTemplatedItems="true"> |
| <Items> |
| </Items> |
| <ItemTemplate> |
| <asp:CheckBox runat="server" ID="CheckBox" Text=""/> |
| <%# DataBinder.Eval(Container, "Text") %> |
| </ItemTemplate> |
| </telerik:RadComboBox> |
I am populating this drop-down on a postback from another drop-down as below:
| protected void TableList1_SelectedIndexChanged(object sender, EventArgs e) |
| { |
| FieldsToInclude.Items.Clear(); |
| FieldsToInclude.Items.Add(new RadComboBoxItem("test1", "1")); |
| FieldsToInclude.Items.Add(new RadComboBoxItem("test2", "2")); |
| FieldsToInclude.Items.Add(new RadComboBoxItem("test3", "3")); |
| FieldsToInclude.Items.Add(new RadComboBoxItem("test4", "4")); |
| FieldsToInclude.Items.Add(new RadComboBoxItem("test5", "5")); |
| } |
The checkboxes do show up, but the text from the <%# DataBinder.Eval(Container, "text") %> does not show up. How can I get text populated next to the checkboxes?
Cheers
Rob