I have a form with the following two ComboBoxes:
With this, the ItemsSource of the second combo box is filtered based on the selected item of the first. Is there anyway to do this in a GridView? I've tried with the following but there are no items in the second combo box:
<
ComboBox
DisplayMemberPath
=
"dgpGroupDesc"
SelectedValuePath
=
"dgpID"
Name
=
"cboGroupID"
ItemsSource
=
"{Binding ElementName=docGroupDomainDataSource, Path=Data}"
></
ComboBox
>
<
ComboBox
DisplayMemberPath
=
"dgpSubDesc"
SelectedValuePath
=
"dgpSubID"
Name
=
"cboSubGroupID"
ItemsSource
=
"{Binding ElementName=cboGroupID, Path=SelectedItem.DocSubGroups}"
></
ComboBox
>
With this, the ItemsSource of the second combo box is filtered based on the selected item of the first. Is there anyway to do this in a GridView? I've tried with the following but there are no items in the second combo box:
<
telerik:GridViewComboBoxColumn
UniqueName
=
"ebookTab"
Header
=
"eBook Tab"
DataMemberBinding
=
"{Binding dgpID}"
DisplayMemberPath
=
"dgpGroupDesc"
SelectedValueMemberPath
=
"dgpID"
ItemsSource
=
"{Binding ElementName=docGroupDomainDataSource, Path=Data}"
/>
<
telerik:GridViewComboBoxColumn
Header
=
"Document Group"
DataMemberBinding
=
"{Binding dgpSubID}"
DisplayMemberPath
=
"dgpSubDesc"
ItemsSource
=
"{Binding ElementName=ebookTab,Path=SelectedItem.DocSubGroups}"
SelectedValueMemberPath
=
"dgpSubID"
/>