Thank you for writing.
You can achieve both of your requirements by handling the NodeFormatting
event of RadTreeView
. Here is a code snippet, which sets the Font
of the ContentElement
of the node, and also hides the LinesContainerElement
, which is responsible for the lines in hierarchical trees and also it causing the space on the left side of the node:
Font f =
sender, Telerik.WinControls.UI.TreeNodeFormattingEventArgs e)
//remove the lines container to reduce the space on the left of the nodes
e.NodeElement.LinesContainerElement.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
e.NodeElement.ContentElement.Font = f;
More information regarding node formatting, can be found in the following documentation article: http://www.telerik.com/help/winforms/treeview-working-with-nodes-formatting-nodes.html
I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.
All the best,
the Telerik team
Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.