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

Selected Item Disappears

3 Answers 95 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Richard Weeks
Top achievements
Rank 2
Richard Weeks asked on 25 Mar 2011, 12:23 AM
Hello,

For a ComboBox like this:

<telerik:RadComboBox ID="Persons" runat="server" DataTextField="Name" DataValueField="Id" MarkFirstMatch="true" AppendDataBoundItems="true">
    <Items>
        <telerik:RadComboBoxItem runat="server" Value="0" Text="" />
    </Items>
</telerik:RadComboBox>

When I select an item then click somewhere else, the combobox seems to reset or clear the selection. This is happening with various comboboxes on my page.

How can I get the selected item to stay where it should? There is no postback or anything. This happens on the client side and the control binds with data with no issue.

Richard

3 Answers, 1 is accepted

Sort by
0
Richard Weeks
Top achievements
Rank 2
answered on 25 Mar 2011, 01:25 AM
Actually, I opened a support ticket (407395) as you need to see the issue in action I think. Look at Dealer, Status and Code Code.

Thanks,
Richard
0
Kalina
Telerik team
answered on 29 Mar 2011, 06:03 PM
Hello Richard Weeks,

Usually this behaviour appears when there are RadComboBox items with same values.
The values of RadComboBox items need to be unique - please find more details about this topic here.

All the best,
Kalina
the Telerik team
0
Richard Weeks
Top achievements
Rank 2
answered on 29 Mar 2011, 11:36 PM
I think this might be what happened. On a new push of data to the databasek, the problem disappeared.

I'll keep an eye on it but my tentative thanks for now :)

Richard
Tags
ComboBox
Asked by
Richard Weeks
Top achievements
Rank 2
Answers by
Richard Weeks
Top achievements
Rank 2
Kalina
Telerik team
Share this question
or