This is a migrated thread and some comments may be shown as answers.

RadGridView GridViewComboBoxColumn with depended values

1 Answer 133 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ilia
Top achievements
Rank 1
Ilia asked on 22 Mar 2019, 08:52 AM

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;
            }
        }

 

1 Answer, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 26 Mar 2019, 02:23 PM
Hello Ilia,

I wrote a reply in the other forum thread that you have opened: RadGridView GridViewComboBoxColumn with depended values.

May I kindly ask you to continue the discussion there in order to avoid duplicating replies? Thank you in advance for your understanding.

Regards,
Vladimir Stoyanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Ilia
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Share this question
or