SelectionChanged Fires on Initial Load

2 posts, 1 answers
  1. Dennis
    Dennis avatar
    62 posts
    Member since:
    Oct 2007

    Posted 11 Aug 2009 Link to this post

    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?
  2. Answer
    Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 14 Aug 2009 Link to this post

    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.
  3. DevCraft banner
Back to Top