RadComboBox SelectedIndexChanged fired incorrectly

5 posts, 1 answers
  1. Bob
    Bob avatar
    72 posts
    Member since:
    May 2008

    Posted 18 Jul 2008 Link to this post

    I have 3 objects - 5 RadComboBoxes, 1 submit Button, 1 clear Button and 1 RadGrid.  My RadComboBoxes have handlers for SelectedIndexChanged.  That all works fine.

    However, when I press the submit button, not only is the grid being bound (which is correct), but one of my RadComboBoxes is getting the
    SelectedIndexChanged fired again...any idea why?

    I'd include code but it's 1000 lines.  I see others have had this problem but don't see any resolution.
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 21 Jul 2008 Link to this post

    Hi Bob,

    Go through the following forum links which discuss a similar scenario. Go through it and see if it is helpful
    SelectedIndex firing change event on the next postback; this interferes with item changed events generated by user action

    RadComboBox with ASP.net 2.0


    Thanks
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bob
    Bob avatar
    72 posts
    Member since:
    May 2008

    Posted 21 Jul 2008 Link to this post

    Upgrading to v619 fixed the issue.

    Thanks!
  5. Bob
    Bob avatar
    72 posts
    Member since:
    May 2008

    Posted 22 Jul 2008 Link to this post

    To clarify, can someone confirm this is what happened?

    1.  In the beginning, the RadComboBox acted like the DropDownList.
    2.  At some point, behavior was requested where a SelectedIndexChanged event would post (on the next PostBack) if the SelectedIndex was changed via code.  This is the behavior at version 415.
    3.  In version 619, this behavior was reversed back to standard expected behavior where it does not call the SelectedIndexChanged event on next PostBack.
  6. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 23 Jul 2008 Link to this post

    Hi Bob,

    This case works as expected at our side even with the 415 version. Please see the the attached sample project.
    To test it choose on item from the combobox, then in the SelectedIndexChanged event the SelectedIndex will be changed to 5. Click the button and will see that the event will not fire.

    You can read here what the bugfixes and changes between different versions are.

    Regards,
    Rosi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017