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

Items add multiple time

4 Answers 32 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Sandeep
Top achievements
Rank 1
Sandeep asked on 19 May 2016, 02:42 PM

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

Sort by
0
Ivan Danchev
Telerik team
answered on 20 May 2016, 06:30 AM
Hello Sandeep,

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
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Sandeep
Top achievements
Rank 1
answered on 20 May 2016, 06:46 AM

  <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

0
Sandeep
Top achievements
Rank 1
answered on 23 May 2016, 05:13 AM
Can anybody suggest solution ?
0
Plamen
Telerik team
answered on 25 May 2016, 07:53 AM
Hello,

Here I am attaching the page that worked correctly at my side. Hope this will help you solve the issue.

Regards,
Plamen
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
DropDownList
Asked by
Sandeep
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Sandeep
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or