SelectedIndex update SelectedItem in RadListBox

2 posts, 0 answers
  1. Kirk
    Kirk avatar
    28 posts
    Member since:
    Jun 2012

    Posted 06 Mar 2013 Link to this post

    This is an update on a separate post in another forum.

    I have looked into this a little more and it is not the fault of the RadDropDownButton. This issues seems to pertain to the RadListBox itself. The RadListBox will not change the SelectedItem when you change the SelectedIndex if it has not been shown at least once. Once it is loaded for the first time it can be unloaded and works fine. I have modified the original application to show this behavior.

    In the demo you will notice when you start the application clicking the buttons does not cause the SelectedItem to change. Once you Toggle Visibility it will work from that point on. It even continues working when the ListBox is hidden again.

    This problem only exists in the latest build of Telerik. I have tested it on the last build and it works as expected. The regular ListBox also doesn't have the issue.

    I thought maybe there was something going on with virtualization here but I replaced the VirtualizingStackPanel with a regular StackPanel and that didn't help. 

    New test project
  2. Vladi
    Vladi avatar
    749 posts

    Posted 07 Mar 2013 Link to this post


    As we see you have posted another post with ID: 667630 we have responded to you in that post but I would like to post our response in this post too:

    It seems that there is an issue that causes the SelectedItem to not be updated when the SelectedIndex is changed when the control is initially Collapsed and vice versa. We logged this issue in our Public Issue Tracker System where you can track its status.

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top