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

RadComboBox SelectedIndexChanged fired incorrectly

4 Answers 269 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 18 Jul 2008, 05:22 PM
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.

4 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 21 Jul 2008, 10:56 AM
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.
0
Bob
Top achievements
Rank 1
answered on 21 Jul 2008, 06:35 PM
Upgrading to v619 fixed the issue.

Thanks!
0
Bob
Top achievements
Rank 1
answered on 22 Jul 2008, 12:51 PM
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.
0
Rosi
Telerik team
answered on 23 Jul 2008, 11:40 AM
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
Tags
ComboBox
Asked by
Bob
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Bob
Top achievements
Rank 1
Rosi
Telerik team
Share this question
or