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

'Horizontal' TreeListView

2 Answers 63 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
jason
Top achievements
Rank 1
jason asked on 15 Aug 2011, 02:21 PM
I am working on a hierarchial data grid control that will eventually be a pivot grid.  I started out using the RadTreeView and made it horizontal.  Image one (horizontaltreeview1.png) shows this.  The way I build the data column underneath is to capture an event (tried treeview.loaded,sizechanged,item prepared...) and then add columns to a grid I have sitting underneath the tree view control.  I loop through all visible items in the tree and make the border and column definition the same width as the item.  This works with the exception of an item that is expanded because instead of a width of say 96 pixels it is 577 pixels because it is stretched as in item 0 in horizontaltreeview2.png.  This causes the columns in the grid to not be lined up with the columns in the tree.  I was thinking maybe a TreeListView would be the route to go but was wondering if that can be made to have a Horizontal layout where the tree is the header on top and instead of columns for data there is rows.  Basically looking for the best control to use in order to have the data rows line up with their columns.  thanks.

Wanted to add one final image.  The grid column width for the data column representing the expanded column should only be the width of the area on the red circle in HorizontalTreeView3.png

2 Answers, 1 is accepted

Sort by
0
jason
Top achievements
Rank 1
answered on 18 Aug 2011, 03:16 PM
I was able to fix this issue by incorporating a BorderConverter and removing borders when up against another.  Also setting the grid column widths to * instead of auto helped it line up.
0
Hristo
Telerik team
answered on 18 Aug 2011, 04:17 PM
Hello Jason,

None of our current controls can suit you properly in your effort to create a PivotGrid. We have tried a lot of approaches and all the efforts ended in heavy customizations and inadequate implementations. This is why we have started the development of our new PivotGrid control. Due to the complexity of this control we cannot commit its availability to a specific date or release.


Best wishes,
Hristo
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
TreeListView
Asked by
jason
Top achievements
Rank 1
Answers by
jason
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or