Hello. I want to use GridView for editing dependable combbox.
For examle I select Club from list in first ComboBox in Grid and after select players of this Club.
<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding Name, Mode=TwoWay}"
ItemsSource="{Binding ClubList}" Width="120" IsReadOnly="False" Header="St Name"
SortMemberPath="Name"
SelectedValueMemberPath="Name"
IsComboBoxEditable="True"
telerik:TextSearch.TextPath="Name"
DisplayMemberPath="Name"
/>
<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding PlayerName, Mode=TwoWay}"
ItemsSource="{Binding PlayerList}" Width="120" IsReadOnly="False" Header="Player Name"
SortMemberPath="Name"
SelectedValueMemberPath="Name"
IsComboBoxEditable="True"
telerik:TextSearch.TextPath="Name"
DisplayMemberPath="Name"
/>
I don't understand how to make it work.
private ObservableCollection<Club> _clubs;
public ObservableCollection<Club> ClubList
{
get
{
if (this._clubs == null)
{
this._clubs = Club.GetClubs();
}
return this._clubs;
}
}