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

ListPicker SelectedItem not set properly

3 Answers 128 Views
ListPicker
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dele
Top achievements
Rank 2
Dele asked on 20 May 2011, 05:05 AM
Hi!

I'm working on a new app using the RadControls for Windows Phone 7, I have a problem with databinding on SelectedItem property

Below is the xaml:
<telerikInput:RadListPicker x:Name="lpRadius" d:LayoutOverrides="Height" 
                                                    ItemsSource="{Binding RadiusList}"
                                                    SelectedItem="{Binding CurrentSettings.Radius, Mode=TwoWay}"
                                                    ItemTemplate="{StaticResource RadiusListPickerItemTemplate}"
                                                    Margin="12,-2,12,0" />

For some reason, when this listpicker is reloaded (i.e. when I navigate to the page it's on), the Value of my selecteditem property "CurrentSettings.Radius" is correct, however, the listpicker item that is selected is incorrect.

I once had this issue, which I thought was resolved, but it seems to be back.

3 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 23 May 2011, 11:45 AM
Hi Dele,

Thanks for contacting us.

We have created a sample WP7 application and tried to reproduce the scenario by using the following steps:

1. Load a page with a RadListPicker control on it that has its SelectedItem property bound to a property of a view model class - the binding was executed successfully and the selected item in the RadListPicker control was displayed correctly.

2. From the loaded page we navigated to another page, changed the value of the bound property in the view model class and pressed the Back button to return to the initial page - in this case the selected item was not properly presented in the RadListPicker control.

We are going to investigate the reasons for this behavior and we will provide a fix for the issue in the upcoming Q2 2011 release of RadControls for Windows Phone 7.

I have updated your account with 1000 points for bringing our attention to this issue.

Thanks for your time and do not hesitate to get back to us in case you have further questions or any feedback to share.

Greetings,
Deyan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Dan
Top achievements
Rank 1
answered on 09 Sep 2011, 04:47 AM
I'm seeing a similar issue where I have a RadListPicker in a Window. The second time I open the window, there seems to be no selection in the list. My list is a List<string> and I'm binding the selected item to a string. Is this a known issue? I'm on the Q2 (NoDo) bits.
0
Deyan
Telerik team
answered on 12 Sep 2011, 09:36 AM
Hello Dan,

Thanks for writing.

We would kindly like to ask you to prepare a sample project that manages to reproduce the issue and send it to us. In this way we will be able to directly take a look at it and see what goes wrong.

Please note that you will have to open a new support ticket in order to be able to upload your project.

Best wishes,
Deyan
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
ListPicker
Asked by
Dele
Top achievements
Rank 2
Answers by
Deyan
Telerik team
Dan
Top achievements
Rank 1
Share this question
or