Hi everyone,
I have a simple RadComboBox like this one where a user can make a selection which is then saved in a database.
When the user comes back later, the value/text he selected is read from the DB and should initially be displayed in the combo box text field - still allowing him to make further alterations. With Prometheus 415 things worked but since upgrading to 619, the combo box text field remains empty initially. When the user clicks the drop-down-arrow, the list is filled correctly and the item he previously selected is highlighted as it should be.
But why is the text box white when the page first loads? It should show the selection the user made before.
Here's what I did:
My ComboBox:
Portion of code-behind (the type_of_action_id is set correctly to a valid int value)
I also tried with ...RadComboBox.SelectedValue = ... but that didn't work either.
Any ideas?
Thanks
s.
I have a simple RadComboBox like this one where a user can make a selection which is then saved in a database.
When the user comes back later, the value/text he selected is read from the DB and should initially be displayed in the combo box text field - still allowing him to make further alterations. With Prometheus 415 things worked but since upgrading to 619, the combo box text field remains empty initially. When the user clicks the drop-down-arrow, the list is filled correctly and the item he previously selected is highlighted as it should be.
But why is the text box white when the page first loads? It should show the selection the user made before.
Here's what I did:
My ComboBox:
<telerik:RadComboBox ID="TypeOfActionRadComboBox" runat="server" DataSourceID="TypeOfActionObjectDataSource" Skin="Outlook" Width="300px" DataTextField="name" DataValueField="tid"> |
<CollapseAnimation Duration="200" Type="OutQuint" /> |
</telerik:RadComboBox> |
Portion of code-behind (the type_of_action_id is set correctly to a valid int value)
this.TypeOfActionRadComboBox.SelectedItem.Value = this.type_of_action_id.ToString(); |
I also tried with ...RadComboBox.SelectedValue = ... but that didn't work either.
Any ideas?
Thanks
s.