I'm using C#, Asp.Net 4.0 and Telerik and I'm trying to interact with a RadComboBox.
I'm populating it with an entity data source like this :
<RadComboBox ID="cbMyCombo" runat="server" AutoPostBack="true" CheckBoxes="true" DataSourceID="edsMySource" DataTextField="Name" DataValueField="Number">
Now, it's populated properly from the database but all my items are unchecked... I tried unsuccessfully to check them by adding the following property "CheckBoxes=true" but it's not working...
I tried to change it in the code behind like this :
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
for (int i = 0; i < cbMyCombo.Items.Count; i++)
{
cbMyCombo.Items[i].Checked = true;
}
}
}
Nice try, no cigar...
I have the feeling that I'm doing it at the wrong moment in the page life cycle but I don't know how to make it properly...