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

How do I make a tree grid

4 Answers 429 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Social_Quotient
Top achievements
Rank 1
Social_Quotient asked on 31 Dec 2007, 10:05 PM
I have found a need to show tabular data in a heirarcy like this example

http://extjs.com/deploy/dev/examples/tree/column-tree.html 

They have a tree and grid in 1 control without each child row having a column header. I see in telerik we can have hierarcy grids but they are not really the same as this. The feature of the "tree" that I would like to have is that you can drag drop between nodes and also right click for a context menu.

Any help getting something like the above link would be great.

Thanks
John

4 Answers, 1 is accepted

Sort by
0
Vladimir
Top achievements
Rank 1
answered on 01 Jan 2008, 09:38 PM
John,

You can use RadTreeView with templates to achieve this. Here is an example:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Treeview/Examples/Functionality/Templates/DefaultCS.aspx


Vlad
0
Raman Chhina
Top achievements
Rank 1
answered on 27 Sep 2008, 08:49 PM
Vlad,

The example you point doesn't create columns which are aligned.  I have tried creating a template which creates a TableRow and two TableCell and wrap the treeview in a <table> tag but this doesn't work either.  Do you have a specific example where multiple columns are created as in the example described by the earlier poster?

Thanks,
Raman
0
Yavor
Telerik team
answered on 29 Sep 2008, 05:37 AM
Hi Raman,

The tree can have an aligned structure if all nodes contain data and subnodes up to a given level- it would be just like the demo shown initially. Alternatively, you can consider using a hierarchy with two levels.
I hope this information helps.

Sincerely yours,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sebastian
Telerik team
answered on 29 Sep 2008, 07:18 AM
Hi John/Raman,

Another possible option would be to take advantage of the self-referencing hierarchy feature of RadGrid and align the nested items using the technique demonstrated here.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Social_Quotient
Top achievements
Rank 1
Answers by
Vladimir
Top achievements
Rank 1
Raman Chhina
Top achievements
Rank 1
Yavor
Telerik team
Sebastian
Telerik team
Share this question
or