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

[Solved] selection problem when items have the same value

1 Answer 102 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Leonard
Top achievements
Rank 1
Leonard asked on 12 May 2009, 02:01 AM
Hi,
I am evaluating RadControls and so far I'm very impressed.  During testing, I found the following problem.  Here's my combo box control:

<

 

telerik:RadComboBox ID="fruit" AllowCustomText="true" runat="server" Width="200px"

 

 

        Height="200px" EmptyMessage="Type to create new route"

 

 

        EnableLoadOnDemand="true" Filter="Contains">

 

 

    <WebServiceSettings Method="GetFruitNames" Path="fruits.asmx" />

 

 

</telerik:RadComboBox>

 


The combo box has the following two items:

item1 name: apples
item1 value: [1,1]

item2 name: apples and oranges
item2 value: [1,1]

If I type in "apples", these two items are displayed as expected.  However, if I select "apples and oranges" and then click outside of the combo box, the selected item will change to "apples".

Is this behavior by design?  Thank you in advance for your help.

Len

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 12 May 2009, 09:27 AM
Hi Leonard,

Yes, this is by design. You need to ensure that the items have different/unique Value property.

Let us know if you have additional questions.

Regards,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ComboBox
Asked by
Leonard
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or