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

How to Repeat Parent Column Headers after Child Hiearchy?

9 Answers 159 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 09 Mar 2012, 03:31 PM
Is there a property setting (that I haven't found) or another way to cause the parent column headers to be repeated after a child table is displayed in a GridView Hiearachy setup?
For example, I am looking for a way to do this with GridView:

---Parent column header
parent row 1
parent row 2
- Child column header
- child row 1
- child row 2
-- Parent column header
parent row 3
parent row 4
...

Thanks,
Tim

9 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 09 Mar 2012, 04:29 PM
Hello Tim,

Can you please attach a small screenshot e.g. from Excel with the desired layout. It does not become quite clear what the final desired  layout is.

All the best,
Pavel Pavlov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Tim
Top achievements
Rank 1
answered on 09 Mar 2012, 05:02 PM
Sure.  Here is a screenshot of our existing app that we are porting to Silverlight with the grid visual we are trying to achieve (Capture.png).  So far we can only achieve this (Capture2.png) with the GridView control.

Thanks,
Tim

0
Pavel Pavlov
Telerik team
answered on 09 Mar 2012, 05:06 PM
Hello Tim ,

Thanks for sending the images! RadGridView can not do that out-of-the box.  I mean the part with the aligned columns of parent Gridview and child Gridview. RadTreeListView provides such features ( except the column headers for the child details) .

Kind regards,
Pavel Pavlov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Tim
Top achievements
Rank 1
answered on 09 Mar 2012, 05:11 PM
I am not really looking for the aligned columns, but rather the repeated parent header row after a child table.  In the Capture.PNG screenshot, the "SubClass Code" header row is repeated after the expansion of the Hierarchy Child table ("Detail Code" header row). 

In our current GridView implementation (Capture2.PNG), you can see the same 'parent row' ("DURABLE EQUIP"), but the Parent header row (SubClass Code) is not repeated.  It is possible to have the parent header row repeated after the child tables are expanded.

Thanks,
Tim

0
Accepted
Vlad
Telerik team
answered on 12 Mar 2012, 07:59 AM
Hello,

 I'm afraid that the parent header row cannot be repeated. 

Regards,
Vlad
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Bkerby
Top achievements
Rank 1
answered on 02 May 2012, 07:44 PM
How do you set up a regular parent/child Gridview similar to the one described here but where all the rows share the same column headers?  Some data value will differentiate between parent and child rows.  I need to be able to expand/collapse the child rows from the parent.  I don't have any screen shots i can show, hopefully this is enough.

---column headers (same for parent and child rows)
main order row 1
- sub order of main order 1 
main order row 2
- sub order of main order 1
- sub order of main order 2
- sub order of main order 3
main order row 3
- sub order of main order 1 

0
Pavel Pavlov
Telerik team
answered on 03 May 2012, 09:41 AM
Hello Tim,

I believe your last description is close to this setup. 

Kind regards,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Bkerby
Top achievements
Rank 1
answered on 03 May 2012, 02:44 PM
I have other grids that are all GridViews and this one needs to have the same functionality except be in a parent/child format.  is there a way to get this configuration with the GridView?
0
Pavel Pavlov
Telerik team
answered on 03 May 2012, 02:52 PM
Hello Tim,

RadGridView can be hacked to behave sort-of-like-TreeListView.
Such approach is demonstrated here : http://www.telerik.com/community/forums/silverlight/treelist/treelistview-peformance-issue.aspx#2026221

Please check the project prepared by Vlad.

Kind regards,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Tim
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Tim
Top achievements
Rank 1
Vlad
Telerik team
Bkerby
Top achievements
Rank 1
Share this question
or