I have one radcombobox inside update panel.
when i changed the value of it,that value add in same dropdwon again.
Suppose i select item1 then dropdwon result is
item1
item1
4 Answers, 1 is accepted
Please post the UpdatePanel markup declaration along with its content. Also if you are binding the ComboBox in the code-behind post the respective event handlers and methods. This will allow us to reproduce the issue and find what causes the behavior you are experiencing.
Regards,
Ivan Danchev
Telerik
<asp:UpdatePanel ID="UPan_Criteria" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<telerik:RadComboBox ID="ddteset" runat="server" RenderMode="Auto" Width="240" ToolTip="Select test"
AutoPostBack="True" DropDownAutoWidth="Enabled" ShowMoreResultsBox="false" Skin="Default" Label="test :">
</telerik:RadComboBox>
</ContentTemplate>
</asp:UpdatePanel>
code behind
Public Class test
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack And ViewState("PgLoadCount") = Nothing Then
ddtest.Items.Insert(0, New RadComboBoxItem("Item1"))
ddtest.Items.Insert(1, New RadComboBoxItem("Item2"))
ddtest.Items.Insert(2, New RadComboBoxItem("Item3"))
End IF
End Sub
Private Sub ddSystem_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddtest.SelectedIndexChanged
'nothing
End Sub
End Class
Here I am attaching the page that worked correctly at my side. Hope this will help you solve the issue.
Regards,
Plamen
Telerik