clientSelectedindexchanged fires incorrectly

4 posts, 0 answers
  1. Gopakumar
    Gopakumar avatar
    6 posts
    Member since:
    Jun 2012

    Posted 10 Jul 2012 Link to this post

    Hy,

    I have a radcombobox in my page.I am calling its OnClientSelectedIndexChanged.I am trying to format the combobx text here.After setting the text my value field becomes empty.Also the event fires again on clicking anywhere outside the control.I am using loadondemand and autopostback is false.

    Help me.
  2. Nencho
    Admin
    Nencho avatar
    1458 posts

    Posted 11 Jul 2012 Link to this post

    Hello Gopakumar,

    Could you please provide us a runnable sample, which demonstrates the issue to examine it locally?

    Greetings,
    Nencho
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. moegal
    moegal avatar
    273 posts
    Member since:
    Jul 2007

    Posted 12 Jul 2013 Link to this post

    I am seeing something similar here.

    I am filling another control (listbox) client side on combobox SelectedIndexChanged

    After I select the combobox the second time the SelectedIndexChanged fires correctly and then when I click anywhere on the page it fire again?

    It seems to be filling the listbox with my previous values as if the 2nd time the selected item in the combobox is the ooriginally selected value and not the new value.

    What did you do to resolve this?

    SOLVED: (For me at least) The combobox item values were all the same.  I made them unique and all is fine now.
  5. Nencho
    Admin
    Nencho avatar
    1458 posts

    Posted 17 Jul 2013 Link to this post

    Hello Marty,

    You have implemented the correct approach. There should not be any Items that have identical values. On blur or postback the RadComboBox searches for the first Item with the selected value and selects it. This is described in this documentation article.

    Regards,
    Nencho
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top