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

Binding comboBox cell on change of another comboBox cell in RadGridView

4 Answers 82 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hareesh
Top achievements
Rank 1
Hareesh asked on 14 Jul 2011, 01:16 PM
Hi,
We are using RadGridView in our project. Now we have a requirement like: One grid view, which is binded with data from a table. Grid is having two combobox columns. First combo is filled with values from one table, and other combo need to bind with data from different table based on the value selected in the first combo. I have searched in the examples & I did not find any sample code. This is the first time i am using telerik controls. Please help..

4 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 14 Jul 2011, 01:46 PM
Hello Hareesh,

You may review this blog post. There is an implementation of a common scenario when entering data is a cascade of combo boxes. The list in the next combo is populated after selecting a value in the previous.

Does this blog answer your questions?

Regards,
Didie
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Hareesh
Top achievements
Rank 1
answered on 15 Jul 2011, 05:44 AM
Thank you Didie!!
This is what I was looking for.

Regards,
Hareesh
0
Matthew
Top achievements
Rank 1
answered on 28 Oct 2011, 07:16 PM
I tried this solution, but on the following line I am getting a NullReferenceException error. It says the location object is Null, even though the comboBox.DataContext is properly populated with data...

location.ContinentCode = (string) comboBox.SelectedValue;
0
Matthew
Top achievements
Rank 1
answered on 28 Oct 2011, 07:51 PM
Ignore my post above, I was setting it to the wrong object type...
Tags
GridView
Asked by
Hareesh
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Hareesh
Top achievements
Rank 1
Matthew
Top achievements
Rank 1
Share this question
or