Hierarchy GridViewRelation from Level 3 to Level 1

2 posts, 0 answers
  1. Mohammed
    Mohammed avatar
    22 posts
    Member since:
    Jan 2016

    Posted 31 Aug 2016 Link to this post

    Hi have a problem showing data with a two level hierachy... I have followed the documentation and tutorials on this subject, creating child templates and setting relations etc...

    I am displaying Candidates assigned to a single booking.

    The top level displays the Candidate Name (and includes the CandiateId)
            The next level displays skills (which includes the skill Id, but NOT the CandidateId - This data is actually associated to the single booking, so repeated under every candidate)
                    The third level displays the pay per skill AND per candidate (So needs to link to SkillId on the level above and link to the Candidate ID 2 levels above)


    I have added the GridViewRelation for the third level to the second, but when I add the relation from the third level to the first, it seems to be simply ignored.

    Can anyone help?

  2. Dess
    Dess avatar
    2164 posts

    Posted 02 Sep 2016 Link to this post

    Hello Mohammed,

    Thank you for writing.  

    The following help article demonstrates how to setup multi-level hierarchy in RadGridView with Object-Relational data:  http://docs.telerik.com/devtools/winforms/gridview/hierarchical-grid/object-relational-hierarchy-mode

    However, you need to have a specific column that points to the ID of the parent level. An alternative solution is to use the load on demand approach. Thus, when data is requested, you can extract the relevant data considering the hierarchy level and the current parent row and fill the rows. A sample is available here: http://docs.telerik.com/devtools/winforms/gridview/hierarchical-grid/load-on-demand-hierarchy

    If you are still experiencing any further difficulties, it would be greatly appreciated if you can provide a sample project demonstrating the problem. Thus, we would be able to investigate the precise case and assist you further. Thank you.

    I hope this information helps. Should you have further questions I would be glad to help.

    Telerik by Progress
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Back to Top