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

OK, I must be Stupid...

3 Answers 182 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Alan
Top achievements
Rank 1
Alan asked on 17 Jan 2008, 11:24 PM
I have seen meny places where is says that the radGridView control easily supports Parent/Child tables.  I have been at it all day and can't get it to work.

I have a simple dataset with two tables.  There is a relationship set up in the dataset on a single field.

Created a form that has a single GridView control.  Set the master grid view template datasource to the parent, and added a child gridview template pointing to the child.  Added a relation in Hierarchy.  Everything is set for autogenerate columns.  The parent data is showing up, but there in nothing showing up for child data under the parent rows when the expand indicator is clicked.

I know the child table has data because I can load it into an MS datagrid using the identical datasource and it displays data.

I have to be missing something here, and I am assuming that its something simple.

The tutorial for WinForms Datagrid is blank, and I can't find any sample apps that contain data in a parent/child relationship.  A little help please!?!

3 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 18 Jan 2008, 09:30 AM
Hello Alan,

Thank you for writing.

Please view the QSF Hierarchy example and commented code for Solution II for this example. If the issue persists, please send us a simple project with your scenario.

Currently, we are implementing a new hierarchical engine for RadGridView, which will be available for our Q1 2008 release.

If you have any additional questions, please contact us.

Sincerely yours,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Alan
Top achievements
Rank 1
answered on 18 Jan 2008, 06:18 PM
I redid everything from scratch using the example you cited, and used a pure programmatic approach to setting up the grid, and it seems to be working now.

I noticed that the grid isn't as smart as I thought it would be in that if you filter the parent table down to a subset of rows, you also have to explicitly filter the child tables as well or else you get an error.

The interesting thing is that yesterday when I was trying to use the IDE to setup the grid at design time, I wasn't filtering the data in the child table, but I wasn't getting any error messages.  The grid simply didn't show the children.

Today I was setting up the relationship at runtime, and the error messages started appearing and the problem was much easier to track down.

Are there any white papers on the new hierarchical engine?  Is it going to be radically different or can I move forward with the current engine and hope for a smooth upgrade path.
0
Julian Benkov
Telerik team
answered on 21 Jan 2008, 12:15 PM
Hi Alan,

The new hierarchical engine will be only internally different from the one in the current release of RadGridView. The public API and design time will be the same.

Currently, filtering child tables and from there, influencing the filtering of the parent table in hierarchical mode is not supported by RadGridView. This is good feature idea and we are logged it to our TODO list for releases after Q1 2008.

Thank you for the feedback.

Best wishes,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Alan
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Alan
Top achievements
Rank 1
Share this question
or