Hello,
Based on one of your examples I created a RadComboBox in which I want to display certain information when the comboBox (Name, Site, Department) is open and when one item is selected the comboBox displays only the Name.
I created the corresponding templates, and it displays the list correctly, but when one item is selected the ComboBox shows the class name that I'm binding to the control.
Please, let me know what I'm missing. I'm using IE7, and the version of my controls is 2009.1.508.1020 (I had to use this internal release since I needed to solve an issue with rearranging grid columns contained in RadWindows)
Thanks very much for your help,
Marco
Based on one of your examples I created a RadComboBox in which I want to display certain information when the comboBox (Name, Site, Department) is open and when one item is selected the comboBox displays only the Name.
I created the corresponding templates, and it displays the list correctly, but when one item is selected the ComboBox shows the class name that I'm binding to the control.
Please, let me know what I'm missing. I'm using IE7, and the version of my controls is 2009.1.508.1020 (I had to use this internal release since I needed to solve an issue with rearranging grid columns contained in RadWindows)
<UserControl x:Class="Intel.Cqn.FamisLight.Silverlight.UserControls.EmployeeSearch" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input" | |
> | |
<Grid x:Name="LayoutRoot" Background="White"> | |
<Grid.Resources> | |
<DataTemplate x:Key="ComboBoxCustomTemplate"> | |
<StackPanel Orientation="Vertical"> | |
<TextBlock FontWeight="Bold" Grid.ColumnSpan="2" Text="{Binding Name}" /> | |
<StackPanel Orientation="Horizontal"> | |
<TextBlock Foreground="RoyalBlue" Text="Department: " /> | |
<TextBlock Text="{Binding Department}" /> | |
<TextBlock Foreground="RoyalBlue" Text=" Site: " /> | |
<TextBlock Text="{Binding Site}" /> | |
</StackPanel> | |
</StackPanel> | |
</DataTemplate> | |
<DataTemplate x:Key="ComboBoxSimpleTemplate"> | |
<TextBlock Text="{Binding Name}" /> | |
</DataTemplate> | |
</Grid.Resources> | |
<telerik:RadComboBox Name="LookupComboBox" | |
IsEditable="True" | |
ItemTemplate="{StaticResource ComboBoxCustomTemplate}" | |
SelectionBoxItemTemplate="{StaticResource ComboBoxSimpleTemplate}" | |
> | |
</telerik:RadComboBox> | |
</Grid> | |
</UserControl> |
Thanks very much for your help,
Marco