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

SelectedIndex update SelectedItem in RadListBox

1 Answer 103 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Kirk
Top achievements
Rank 1
Kirk asked on 06 Mar 2013, 09:45 PM
This is an update on a separate post in another forum.

http://www.telerik.com/community/forums/silverlight/general-discussions/selectedindex-update-selecteditem-in-radlistbox-in-raddropdownbutton.aspx

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

http://dl.dropbox.com/u/59731064/RadDropdownTestProject2.zip

1 Answer, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 07 Mar 2013, 10:06 AM
Hi,

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,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ListBox
Asked by
Kirk
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Share this question
or