SelectionChanged Event Question

2 posts, 0 answers
  1. christine
    christine avatar
    17 posts
    Member since:
    Jul 2010

    Posted 21 Apr 2012 Link to this post

    I am using the listbox control with a custom datatemplete..  I have noticed that the first time you select an item in the list box the selectionchanged even does not fire.  It will only fire the second time you select an item from the list, unless I want to set the selectedIndex property which I do not want to do.   

    So if I dont want to have a pre selected item by default.  How do I determine the first item in the list that's selected.
  2. George
    George avatar
    1332 posts

    Posted 26 Apr 2012 Link to this post


    We are not aware of such problem with the RadListBox control. We tried to reproduce the issue with the following sample code:

    <telerik:RadListBox Width="116" SelectionChanged="RadListBox_SelectionChanged"
                        ItemsSource="{Binding YourItemsSource}">
                <Border Background="Red">
                    <TextBlock Text="{Binding PropertyName}" />

    but the SelectionChanged event fires everytime.

    Can you give us more details about your scenario? I am glad to assist you further.

    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft R3 2016 release webinar banner
Back to Top