Hi I am having combobox in the GridViewData column and i am binding the ItemSource with one of the property present on the class binded to the radgridview itemsource collection.For example I binded radgridview with list of employees.Employee is a class and I binded the combobox itemsource with dependants property which is one of the property on the employee class.
But the combobox is not populating.DataContext of RadGridView is separate and it is another viewmodel class.
<
telerik:GridViewDataColumn.CellEditTemplate
>
<
DataTemplate
>
<
telerik:RadComboBox
x:Name
=
"ComboBox"
SelectedIndex
=
"0"
Height
=
"20"
Width
=
"150"
ItemsSource
=
"{Binding Items,RelativeSource={RelativeSource AncestorType=telerik:GridViewRow}}"
ItemTemplate
=
"{StaticResource RadComboBoxItemTemplate}"
SelectionBoxTemplate
=
"{StaticResource SelectionBoxTemplate}"
>
</
telerik:RadComboBox
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellEditTemplate
>