'Horizontal' TreeListView

3 posts, 0 answers
  1. jason
    jason avatar
    28 posts
    Member since:
    Oct 2010

    Posted 15 Aug 2011 Link to this post

    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. jason
    jason avatar
    28 posts
    Member since:
    Oct 2010

    Posted 18 Aug 2011 Link to this post

    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.
  3. DevCraft banner
  4. Hristo
    Admin
    Hristo avatar
    408 posts

    Posted 18 Aug 2011 Link to this post

    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 >>

Back to Top