Issue binding RadComboBox in RadWindow

5 posts, 0 answers
  1. David Brenchley
    David  Brenchley avatar
    67 posts
    Member since:
    Jun 2010

    Posted 03 Jul 2012 Link to this post

    When binding to the SelectedItem on a RadComboBox in a RadWindow, it doesn't show the selected item as selected until I select a value from the dropdown.  The value is in the dropdown.  Once another value has been selected, it appears to work and sync fine.  When I use a regular Silverlight ComboBox instead of RadComboBox, it all works fine.  I populate the ItemsSource in the constuctor of the viewmodel.  Using MVVM through Caliburn.

     

     

    [ImportingConstructor]

    public BannerDetailViewModel(IEventAggregator events, BannerDetail bannerDetail, CategoryList categories) {

    this.categories = categories;

    NotifyOfPropertyChange(() => Categories);

     

    Model = bannerDetail;

     

    NotifyOfPropertyChange(() => Model);

     

    this.DisplayName = "Banner";

    }


    <

    telerik:RadComboBox Name="CategoryCombo" Grid.Row="3" Grid.Column="1" SelectedItem="{Binding Model.Category, Mode=TwoWay, NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" ItemsSource="{Binding Path=Categories}" DisplayMemberPath="Name" ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent=" " VerticalAlignment="Center" HorizontalAlignment="Left"/>

     

    <ComboBox Name="testCombo" SelectedItem="{Binding Model.Category, Mode=TwoWay, NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" ItemsSource="{Binding Path=Categories}" DisplayMemberPath="Name" />

  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 06 Jul 2012 Link to this post

    Hello David,

    We're not sure what could be the reason for this issue. Could you please send us a simple runnable project where the problem can be observed? Thanks

    Regards,
    Yana
    the Telerik team

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

  3. DevCraft banner
  4. Ronny
    Ronny avatar
    8 posts
    Member since:
    Mar 2012

    Posted 10 Jul 2012 Link to this post

    Hey guys,

    any news concerning this issue? It's the same problem for me.

    Kind regards,
    Ronny
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 10 Jul 2012 Link to this post

    Hi Ronny,

    We weren't able to reproduce the problem.  Without observing the issue at our side, there is not much we can do to help.

    All the best,
    Yana
    the Telerik team

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

  6. Chris
    Chris avatar
    5 posts
    Member since:
    Aug 2012

    Posted 13 Aug 2012 Link to this post

    Binding to SelectedValue instead of SelectedItem fixed this for me.
Back to Top
DevCraft banner