Hello,
I have a RadComboBox inside datagrid. I am binding my datagrid from a collection, which I get from WCF Service Call.
For eg. My collection name is Product. and it has members
ProductId, ProductName and CategoryCollection.
CategoryCollection has members: Category Id, Category Name.
In My datagrid I need to display, ProductName and dropdown for CategoryCollection.
When i bind my categorycollection to listbox it works fine. My code is :
<my:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Grid>
<ListBox x:Name="lstName" Height="30" Width="200" Grid.Column="1" ItemsSource="{Binding CategoryCollection}" DisplayMemberPath="categoryname" ScrollViewer.VerticalScrollBarVisibility="Visible" SelectionChanged="lstName_SelectionChanged" ></ListBox>
</Grid>
</DataTemplate>
</my:DataGridTemplateColumn.CellTemplate>
But when I use RadComboBox, records doesn't show up, just an empty combo box thats all I get. my Code for RadComboBox
<my:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Grid>
<telerik:RadComboBox x:Name="ddN" ItemsSource="{Binding CategoryCollection}" DisplayMemberPath="categoryname" Height="20" Grid.Column="2" MinWidth="40" ></telerik:RadComboBox>
</Grid>
</DataTemplate>
</my:DataGridTemplateColumn.CellTemplate>
Please suggest?