ListPicker SelectedItem not set properly

4 posts, 0 answers
  1. Dele
    Dele avatar
    23 posts
    Member since:
    Jun 2012

    Posted 20 May 2011 Link to this post


    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.
  2. Deyan
    Deyan avatar
    2026 posts

    Posted 23 May 2011 Link to this post

    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.

    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. DevCraft banner
  4. Dan
    Dan avatar
    8 posts
    Member since:
    Jul 2011

    Posted 08 Sep 2011 Link to this post

    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.
  5. Deyan
    Deyan avatar
    2026 posts

    Posted 12 Sep 2011 Link to this post

    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,
    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 >>

Back to Top