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

Hierarchy GridViewRelation from Level 3 to Level 1

1 Answer 127 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mohammed
Top achievements
Rank 1
Mohammed asked on 31 Aug 2016, 03:56 PM

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?

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 02 Sep 2016, 01:58 PM
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.

Regards,
Dess
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.
Tags
GridView
Asked by
Mohammed
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or