Items add multiple time

5 posts, 0 answers
  1. Sandeep
    Sandeep avatar
    13 posts
    Member since:
    Jan 2016

    Posted 19 May Link to this post

    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 

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    834 posts

    Posted 20 May Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sandeep
    Sandeep avatar
    13 posts
    Member since:
    Jan 2016

    Posted 20 May in reply to Ivan Danchev Link to this post

      <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

  5. Sandeep
    Sandeep avatar
    13 posts
    Member since:
    Jan 2016

    Posted 23 May Link to this post

    Can anybody suggest solution ?
  6. Plamen
    Admin
    Plamen avatar
    2731 posts

    Posted 25 May Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017