have a simple rad ComboBox with a value field and a text field. I bind the combobox to a data source and this works fine. Now I want to highlight the selectedvalue. But I cannot get this to work. Here is my code:
If I run in debug mode, the above field (PolicyAccountValueSourceEnumId) has the selected value I want the combobox to be selected. But it is not. No item is selected.
What am I doing wrong?
Thanks,
Bob If I run in debug mode, the above field (PolicyAccountValueSourceEnumId) has the selected value I want the combobox to be selected. But it is not. No item is selected.What am I doing wrong?Thanks,Bob
<Telerik:radComboBox id="cbPolicyAccountValueSource"
DataTextField="value"
DataValueField="key"
runat="server">
</Telerik:radComboBox>
cbPolicyAccountValueSource.DataSource = LifePolicyAccountValue.PolicyAccountValueSources
cbPolicyAccountValueSource.DataBind()
Dim PolicyAccountValueSourceEnumId As Object = DataBinder.Eval(DataItem, "PolicyAccountValueSourceEnumId")
cbPolicyAccountValueSource.SelectedValue = CInt(PolicyAccountValueSourceEnumId)
If I run in debug mode, the above field (PolicyAccountValueSourceEnumId) has the selected value I want the combobox to be selected. But it is not. No item is selected.
What am I doing wrong?
Thanks,
Bob If I run in debug mode, the above field (PolicyAccountValueSourceEnumId) has the selected value I want the combobox to be selected. But it is not. No item is selected.What am I doing wrong?Thanks,Bob
