New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

RadComboBox Selects a Different Item

DESCRIPTION

The user selects an Item from the drop down.

PROBLEM

Another item gets selected.

CAUSE

Items have identical values. On blur or postback the RadComboBox searches for the first Item with the selected value and selects it.

<telerik:RadComboBox RenderMode="Lightweight" ID="RadComboBox1" runat="server">
   <Items>
       <telerik:RadComboBoxItem Text="Item 1" Value="1" />
       <telerik:RadComboBoxItem Text="Item 2" Value="1" />
       <telerik:RadComboBoxItem Text="Item 3" Value="1" />
   </Items>
</telerik:RadComboBox> 

The same behavior will manifest when the items are having the same Text and no Values:

<telerik:RadComboBox RenderMode="Lightweight" ID="RadComboBox1" runat="server">
   <Items>
       <telerik:RadComboBoxItem Text="Item" />
       <telerik:RadComboBoxItem Text="Item" />
       <telerik:RadComboBoxItem Text="Item" />
   </Items>
</telerik:RadComboBox> 

RESOLUTION

Make sure that all Items have unique values.

In this article