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

Setting up Tabbed childgrid

1 Answer 47 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marc-Andre
Top achievements
Rank 1
Marc-Andre asked on 30 Sep 2009, 08:58 PM
Hi there, I'm trying to create a hierarchal radgridview. I do all the steps mentionned in the documentation and it works fine when it comes to showing the childgridview. However, I want to use different tabs to show different information but I can't find where to create the tabs ?

Also, now when I try to open the property builder, it makes VS2008 crash all the time. I'm kinda stuck...


thanks!

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 01 Oct 2009, 04:25 PM
Hello Marc-Andre,

Currently we wouldn't suggest using the RadGridView property builder for constructing complex hierarchy scenarios. We are aware of some issues related to the property builder, which may mess up your setup. FYI, we are currently working on a new version of the property builder that will be easier to use and will allow complex hierarchy scenarios.

In order to build tabbed child views you should add the corresponding relations to the master table. Here is a sample:

DataSet set = new DataSet(); 
 
set.Tables.Add(table); 
set.Tables.Add(table2); 
set.Tables.Add(table3); 
 
this.radGridView1.DataSource = set
this.radGridView1.DataMember = "table"
 
set.Relations.Add(new DataRelation("rel1", table.Columns[0], table2.Columns[1])); 
set.Relations.Add(new DataRelation("rel2", table.Columns[0], table3.Columns[1])); 
 
this.radGridView1.AutoGenerateHierarchy = true

There is an example in our demo application that shows how to build tabbed child views with RadGridView. Please look at "GridView -> Hierarchy -> Tabbed child views" example for more details.

If you have any further questions, feel free to contact us.

 
Greetings,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Marc-Andre
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or