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

Self Referencing Hierarchy

2 Answers 102 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
pylacroix
Top achievements
Rank 1
pylacroix asked on 02 Nov 2009, 04:31 PM
Hi,

is it possible to do something similar to this http://www.telerik.com/community/forums/aspnet-ajax/grid/self-referencing-hierarchy-in-programmatic-grid-with-a-xmldatasource.aspx

With some data in a xml format like this

<Lines>  
    <Item ID="IDI-1-17" ParentID="" UserCode="B24R" Description="Base"/>  
    <Item ID="IDI-1-75" ParentID="IDI-1-17" UserCode="FL.TOE" Description="Flush Toe Kick"/>  
    <Item ID="IDI-1-20" ParentID="" UserCode="B24L" Description="Base"/>  
    <Item ID="IDI-1-57" ParentID="IDI-1-20" UserCode="FL.TOE" Description="Flush Toe Kick"/>  
    <Item ID="IDI-1-63" ParentID="IDI-1-20" UserCode="FD.SH" Description="Full Depth Shelf"/>  
    <Item ID="IDI-1-53" ParentID="IDI-1-20" UserCode="CT2" Description="Knife Section Kit"/>  
    <Item ID="IDI-1-26" ParentID="" UserCode="B36-2" Description="Base"/>  
    <Item ID="IDI-1-81" ParentID="IDI-1-26" UserCode="FL.TOE" Description="Flush Toe Kick"/>  
    <Item ID="IDI-1-36" ParentID="" UserCode="SBFD36" Description="Sink Base FHD"/>  
    <Item ID="IDI-1-83" ParentID="IDI-1-36" UserCode="FL.TOE" Description="Flush Toe Kick"/>  
    <Item ID="IDI-1-40" ParentID="IDI-1-36" UserCode="SK.21-1TUB" Description="21&quot; 1 Tub Sink"/>  
    <Item ID="IDI-1-22" ParentID="" UserCode="W2424" Description="Wall"/>  
    <Item ID="IDI-1-24" ParentID="" UserCode="W2424L-GL" Description="Wall w/Glass"/>  
</Lines>  

I want to be able to create a hierarchical report. I know that I have to convert my xml into a dataset, but I'm stuck with the hierarchy part. Is there something similar to the ASP.NET AJAX Radgrid I can use ?

Thanks


2 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 03 Nov 2009, 04:32 PM
Hi pylacroix,

Take a look at the following forum post for more info and example: How do I display recursive data.

All the best,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
pylacroix
Top achievements
Rank 1
answered on 03 Nov 2009, 04:37 PM
Thanks, I'll give it a try
Tags
General Discussions
Asked by
pylacroix
Top achievements
Rank 1
Answers by
Steve
Telerik team
pylacroix
Top achievements
Rank 1
Share this question
or