I am successfully using the Label control, bound to most other controls. However, I have yet to be able to get the Label control to work with RadComboBox. I am binding the ComboBox with an IEnumerable collection using RIA Services (this works fine). I set the DisplayMemberPath so that the appropriate values are displayed in the ComboBox. All of this works great.
However, when I add a Label control, and bind it to the ComboBox, my label is not displayed. I am using the Target property, rather than the Content property so that I can use the metadata associated with the data. BTW, the same goes for the DescriptionViewer control (doesn't work the way I have it with the RadComboBox). Here is a sample of my XAML:
However, when I add a Label control, and bind it to the ComboBox, my label is not displayed. I am using the Target property, rather than the Content property so that I can use the metadata associated with the data. BTW, the same goes for the DescriptionViewer control (doesn't work the way I have it with the RadComboBox). Here is a sample of my XAML:
<dat:Label Grid.Row="1" Grid.Column="0" Target="{Binding ElementName=SystemComboBox}" PropertyPath="SystemName" /> |
<StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal"> |
<telerikInput:RadComboBox x:Name="SystemComboBox" Width="300" |
HorizontalAlignment="Left" VerticalAlignment="Center" |
ItemsSource="{Binding Systems}" |
DisplayMemberPath="SystemName" |
IsReadOnly="True" IsEditable="True" /> |
<dat:DescriptionViewer Target="{Binding ElementName=SystemComboBox}" PropertyPath="SystemName" /> |
</StackPanel> |