Loading Hierarchy with Same Headers

2 posts, 0 answers
  1. digitall
    digitall avatar
    169 posts
    Member since:
    Jun 2006

    Posted 02 Dec 2008 Link to this post

    Is it possible to load a RadGrid with a hierarchy-based object model that retains the same header information? For example, I have a three-level object model that all contain the same properties of Prior, FirstHalf, SubTotal, SecondHalf and Total. The first level object contains those properties and then a collection of the second level set of objects. The second level object contains those same properties and also contains a collection of the third level set of objects which has those same properties (but no children underneath). So..

    RootObject
         - Prior
         - FirstHalf
         - Subtotal
         - SecondHalf
         - Total
         - Collection of ChildrenObject

    ChildrenObject
         - Prior
         - FirstHalf
         - Subtotal
         - SecondHalf
         - Total
         - Collection of DetailObject

    DetailObject
         - Prior
         - FirstHalf
         - Subtotal
         - SecondHalf
         - Total

    I want to use the RADGrid to display this hierarchy, but have only one set of headers for all objects. I know I can just not set a header on all the child/detail object grids, but I want everything on child and detail grids to line up with the parent header.

    Is this possible?
  2. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 05 Dec 2008 Link to this post

    Hi,

    You can declare the headers to be the same as the master table headers, or alternatively, iterate through the header(s) for the detail tables, and alter the text manually, from the code-behind. As for the alignment of the elements, the following article contains more information on the subject.
    I hope this information helps.

    Regards,
    Yavor
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top