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

Issue binding RadComboBox in RadWindow

4 Answers 113 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
David Brenchley
Top achievements
Rank 1
David Brenchley asked on 03 Jul 2012, 02:34 PM
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" />

4 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 06 Jul 2012, 11:09 AM
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 >>

0
Ronny
Top achievements
Rank 1
answered on 10 Jul 2012, 05:57 AM
Hey guys,

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

Kind regards,
Ronny
0
Yana
Telerik team
answered on 10 Jul 2012, 10:21 AM
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 >>

0
Chris
Top achievements
Rank 1
answered on 13 Aug 2012, 03:00 PM
Binding to SelectedValue instead of SelectedItem fixed this for me.
Tags
ComboBox
Asked by
David Brenchley
Top achievements
Rank 1
Answers by
Yana
Telerik team
Ronny
Top achievements
Rank 1
Chris
Top achievements
Rank 1
Share this question
or