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

SelectionChanged Fires on Initial Load

1 Answer 71 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Dennis
Top achievements
Rank 1
Dennis asked on 11 Aug 2009, 03:01 PM
If I specify a "IsSelected" in the XAML of defining a ComboBox, on initial load it fires the SelectionChanged event. The event also fires everytime I add an item to the ComboBox programmatically (even without setting the selection).

How do you determine if the SelectionChanged event was fired by a user making a "true" selection versus when initially loaded or items added/removed?

1 Answer, 1 is accepted

Sort by
0
Accepted
Boyan
Telerik team
answered on 14 Aug 2009, 10:47 AM
Hello Dennis,

This behavior is by design. You can check Microsoft SL and WPF Comboboxes and you will see that they have the same behavior. However there is an easy way to workaround this. You have to register the event in the code. You can check this forum thread.

All the best,
Boyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ComboBox
Asked by
Dennis
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Share this question
or