How to Repeat Parent Column Headers after Child Hiearchy?

10 posts, 1 answers
  1. Tim
    Tim avatar
    10 posts
    Member since:
    Mar 2012

    Posted 09 Mar 2012 Link to this post

    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

  2. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 09 Mar 2012 Link to this post

    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 >>
  3. Tim
    Tim avatar
    10 posts
    Member since:
    Mar 2012

    Posted 09 Mar 2012 Link to this post

    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

  4. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 09 Mar 2012 Link to this post

    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 >>
  5. Tim
    Tim avatar
    10 posts
    Member since:
    Mar 2012

    Posted 09 Mar 2012 Link to this post

    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

  6. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 12 Mar 2012 Link to this post

    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 >>
  7. Bkerby
    Bkerby avatar
    9 posts
    Member since:
    Apr 2012

    Posted 02 May 2012 Link to this post

    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 

  8. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 03 May 2012 Link to this post

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

  9. Bkerby
    Bkerby avatar
    9 posts
    Member since:
    Apr 2012

    Posted 03 May 2012 Link to this post

    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?
  10. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 03 May 2012 Link to this post

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

Back to Top