Hide expand/collapse button for level 0 nodes

2 posts, 0 answers
  1. Adam
    Adam avatar
    89 posts
    Member since:
    Mar 2008

    Posted 08 Jul 2011 Link to this post

    Does anyone know if it Is it possible to hide the expand/collapse button at all?  I am trying to preserve as much horizontal space as possible and also fulfill a requirement that the first level of nodes is always expanded.

    I've come across a solution for the ASP.NET AJAX suite but nothing for the WinForms (http://www.telerik.com/community/forums/aspnet-ajax/treeview/drop-expand-collapse-image-from-root-node.aspx#854721)

    Thanks,
    Adam
  2. Adam
    Adam avatar
    89 posts
    Member since:
    Mar 2008

    Posted 08 Jul 2011 Link to this post

    Actually I just figured out a solution.  In case anyone is interested:

    Changing the radTreeView.TreeElement.Margin.Left to -30 works to hide the image.  The node can still be expanded/collapsed via double-clicking, so I handle the NodeExpandedChanging and cancel it if is level 0.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top