Completed
Last Updated: 11 Feb 2014 16:10 by ADMIN
To reproduce: 
  void radTreeView1_EditorInitialized(object sender, TreeNodeEditorInitializedEventArgs e)
        {
            TreeViewTextBoxEditor editor = e.Editor as TreeViewTextBoxEditor;
            BaseTextBoxEditorElement element = (BaseTextBoxEditorElement)editor.EditorElement;
            element.TextChanging+=new TextChangingEventHandler(element_TextChanging);
        }

        void  element_TextChanging(object sender, TextChangingEventArgs e)
        {
            e.Cancel = true;
        }
Completed
Last Updated: 13 Dec 2014 09:00 by Jesse Dyck
Improve the drag and drop indicators by giving more clean user friendly design and positioning.
Completed
Last Updated: 19 Sep 2012 02:48 by ADMIN
To reproduce:

 myTree.TreeViewElement.Comparer = new TreeSort(myTree.TreeViewElement);

Work around: None
Completed
Last Updated: 18 Sep 2012 09:16 by ADMIN
To reproduce:
public Form1()
        {
            InitializeComponent();

            DataTable table = new DataTable();
            table.Columns.Add("ID");
            table.Columns.Add("Name");

            for (int i = 0; i < 10; i++)
            {
  
Completed
Last Updated: 05 Jun 2014 07:08 by Svetlin
Vertical scroll bar is not shown if the expanded node's child nodes have been collapsed in NodeExpandChanged event previously. The code snippet bellow causes the issue:


void radTreeView1_NodeExpandedChanged(object sender, RadTreeViewEventArgs e)
{
    bool isExpanded = e.Node.Expanded;

    if (!isExpanded)
    {
        foreach (RadTreeNode node in e.Node.Nodes)
        {
            node.Expanded = false;
        }
    }
}
Completed
Last Updated: 28 Aug 2012 06:23 by ADMIN
1. Create a new project with RadTreeView.
2. Add 30 nodes in a cycle on Form.Shown event.
3. Use BeginUpdate/EndUpdate methods when adding every single node. 
4. Set the SelectedNode property of RadTreeView every time.
Completed
Last Updated: 05 Jun 2014 07:08 by Svetlin
When the RadTreeView is disabled, nodes text is rendered as bold text.
Completed
Last Updated: 17 Aug 2012 03:27 by ADMIN
1. Place a RadTreeView in a form and add enough items to show scrollbars;
2. Show the form using ShowDialog() and close it
3. Open it again and note that there are no scrollbars in the RadTreeView
Completed
Last Updated: 16 Aug 2012 06:01 by ADMIN
We upgraded to Telerik.WinControls  2012.2.726.20

I tried adding a RadTreeNode as follows

RadTreeNode rtn1 = new RadTreeNode("C1");
rtn1.CheckType = CheckType.RadioButton;
rtn1.CheckState = Telerik.WinControls.Enumerations.ToggleState.On;
received an error when running.
Completed
Last Updated: 16 Aug 2012 04:16 by ADMIN
To reproduce, use the following code. Once the app starts, expand nodes 1, 5,10, 15 and 19. Scroll to the very bottom and filter the tree:
public partial class Form1 : RadForm
    {
        public Form1()
        {
            InitializeComponent();

     
Completed
Last Updated: 05 Jun 2014 07:08 by Svetlin
The node find methods of RadTreeView should not perform over the inernal RootTreeNode.
Completed
Last Updated: 11 Feb 2014 13:50 by ADMIN
When I execute TreeView.SelectedNodes.Clear() during runtime, the SelctedNodeChanged event is not fired letting me know that the current selected node was changed to no selection. Should that qualify for a selection change event? Eessentially, the selected node has changed, but to no selection. The SelectedNodeChanging event does not fire as well.

What event will let me know that a selection has been removed (changed)?
Completed
Last Updated: 06 Aug 2012 03:55 by ADMIN
To reprodice:
for (int i = 0; i < 20; i++)
{
RadTreeNode node = new RadTreeNode("Node " + i);
node.ToolTipText = "hello " + i;
radTreeView1.Nodes.Add(node);
}
Completed
Last Updated: 04 Jul 2012 06:28 by ADMIN
To reproduce use this code:
RadTreeView tree = new RadTreeView();
tree.Name = "tree";
       
RadTreeNode[] nodes = new RadTreeNode[5];
for (int i = 0; i < nodes.Length; ++i)
  nodes[i] = new RadTreeNode(i.ToString());
 
tree.Nodes.AddRange(nodes);
tree.Nodes.Clear();
tree.Nodes.AddRange(nodes);
Completed
Last Updated: 04 Jul 2012 07:55 by Jesse Dyck
Summary of the program logic:
The app allows the user to edit hierarchical data that is serialized/deserialized from an XML file. It is first deserialized into a collection of business objects that are structured hierarchically:

MetadataNode
--LongNameEnglish::string
--LongNameArabic::string
--Nodes::BindingList<MetadataNode>

I take this hierarchical collection and flatten it out so that each node references the Id of its parent node (self-referencing):

--Node 1 (Id:1, ParentId:null)
----Node 1-1 (Id:2, ParentId:1)
----Node 1-2 (Id:3, ParentId:1)

In the attached project, if you run it and select File->Open Data File and browse to and select the Metadata2.xml file that I included in the root of the ZIP archive, then click the add button (the icon with the "+" symbol on top of the treeview control), the code in the AddNode function works as expected--it calls RadTreeView.BeginUpdate(), adds a new item to the datasource (a BindingList<MetadataNode> collection), then calls RadTreeView.EndUpdate(). However, if you run the application and select File->New Data File and click the add button, the same code throws a NullReferenceException when the RadTreeView.EndUpdate() method is called.
Completed
Last Updated: 26 Jun 2012 06:16 by ADMIN
1. Create a new project with RadTreeView.
2. When handling Form.Load event add two root nodes and several child nodes.
3. Run the project and vertical scrollbar will be visible when it is not needed.
Completed
Last Updated: 05 Jun 2014 07:08 by Svetlin
When you change the dock state of window in RadDock, the hosted RadTreeView shows only the nodes from first level, if data relation binding is used.
Completed
Last Updated: 05 Jun 2014 07:08 by Svetlin
If you add nodes in the following manner:

  Private arCategories() As String = {"Not Used", "Category1", "Category2", "Category3", "Category4", "Category5"}

  Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim node As RadTreeNode

    node = Me.RadTreeView1.Nodes.Add(arCategories(1))
    node.Image = My.Resources.img1
    AddItems(node)

    node = Me.RadTreeView1.Nodes.Add(arCategories(2))
    node.Image = My.Resources.img2
    AddItems(node)

    node = Me.RadTreeView1.Nodes.Add(arCategories(3))
    node.Image = My.Resources.img3
    AddItems(node)

    node = Me.RadTreeView1.Nodes.Add(arCategories(4))
    node.Image = My.Resources.img4
    AddItems(node)

    node = Me.RadTreeView1.Nodes.Add(arCategories(5))
    node.Image = My.Resources.img5
    AddItems(node)

    For Each nd As RadTreeNode In Me.RadTreeView1.Nodes
      For Each n As RadTreeNode In nd.Nodes
        n.Image = nd.Image
      Next
    Next
  End Sub

  Private Sub AddItems(ByVal node As RadTreeNode)
    For i As Integer = 1 To 4
      node.Nodes.Add("Item" & i)
    Next
  End Sub

the vertical scroll is not calculated correctly.
Completed
Last Updated: 21 Jun 2012 03:27 by ADMIN
Use the scrollintoview method of the tree to select a node while the treeview has not the focus.
Completed
Last Updated: 05 Jun 2014 07:08 by Svetlin
The RadTreeView throws NullReferenceException when scrolling is performed if it is loaded from xml document.
Loading the following xml document causes the issue:
<TreeView xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ShowLines="true">
<Nodes Expanded="true" Text="Test1" ImageIndex="0">
<Nodes Expanded="true" Text="Test2" ImageIndex="0">
<Nodes Expanded="true" Text="Test3" ImageIndex="2">
<Nodes Expanded="true" Text="Test4" ImageIndex="1" BackColor="232,255,232" NumberOfColors="1">
<Nodes Text="Test5" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
<Nodes Text="Test6" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
<Nodes Text="Test7" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
</Nodes>
<Nodes Expanded="true" Text="Test18" ImageIndex="1">
<Nodes Text="Test9" ImageIndex="3" />
<Nodes Text="Test10" ImageIndex="3" />
</Nodes>
<Nodes Expanded="true" Text="Test11" ImageIndex="1" BackColor="232,255,232" NumberOfColors="1">
<Nodes Text="Test12" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
<Nodes Text="Test13" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
</Nodes>
<Nodes Expanded="true" Text="Test14" ImageIndex="1">
<Nodes Text="Test15" ImageIndex="3" />
<Nodes Text="Test16" ImageIndex="3" />
<Nodes Expanded="true" Text="Test17" ImageIndex="4">
<Nodes Expanded="true" Text="Test18" ImageIndex="1" BackColor="232,255,232" NumberOfColors="1">
<Nodes Text="Test19" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
<Nodes Text="Test20" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
</Nodes>
</Nodes>
</Nodes>
</Nodes>
<Nodes Expanded="true" Text="Test20" ImageIndex="2">
<Nodes Expanded="true" Text="Test21" ImageIndex="1" BackColor="232,255,232" NumberOfColors="1">
<Nodes Text="Test22" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
<Nodes Text="Test23" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
</Nodes>
<Nodes Expanded="true" Text="Test24" ImageIndex="1">
<Nodes Text="Test25" ImageIndex="3" />
<Nodes Text="Test26" ImageIndex="3" />
<Nodes Text="Test27" ImageIndex="3" />
<Nodes Text="Test28" ImageIndex="3" />
</Nodes>
<Nodes Expanded="true" Text="Test29" ImageIndex="1" BackColor="232,255,232" NumberOfColors="1">
<Nodes Text="Test30" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
<Nodes Text="Test31" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
</Nodes>
</Nodes>
</Nodes>
<Nodes Expanded="true" Text="Test32" ImageIndex="0">
</Nodes>
<Nodes Expanded="true" Text="Test33" ImageIndex="0">
<Nodes Expanded="true" Text="Test34" ImageIndex="0">
<Nodes Expanded="true" Text="Test35" ImageIndex="1" BackColor="232,255,232" NumberOfColors="1">
<Nodes Text="Test36" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
<Nodes Text="Test37" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
<Nodes Text="Test38" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
</Nodes>
<Nodes Expanded="true" Text="Test39" ImageIndex="1">
<Nodes Text="Test40" ImageIndex="3" />
<Nodes Text="Test41" ImageIndex="3" />
</Nodes>
<Nodes Expanded="true" Text="Test42" ImageIndex="1" BackColor="232,255,232" NumberOfColors="1">
<Nodes Text="Test43" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
<Nodes Text="Test44" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
<Nodes Text="Test45" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
<Nodes Text="Test46" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
</Nodes>
</Nodes>
<Nodes Expanded="true" Text="Test47" ImageIndex="0">
<Nodes Expanded="true" Text="Test48" ImageIndex="1" BackColor="232,255,232" NumberOfColors="1">
<Nodes Text="Test49" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
<Nodes Text="Test50" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
</Nodes>
<Nodes Expanded="true" Text="Test51" ImageIndex="1" BackColor="232,255,232" NumberOfColors="1">
<Nodes Text="Test52" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
<Nodes Text="Test53" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
</Nodes>
</Nodes>
<Nodes Expanded="true" Text="Test54" ImageIndex="0">
<Nodes Expanded="true" Text="Test55" ImageIndex="1" BackColor="232,255,232" NumberOfColors="1">
<Nodes Text="Test56" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
<Nodes Text="Test57" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
<Nodes Text="Test58" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
<Nodes Text="Test59" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
<Nodes Text="Test60" ImageIndex="3" BackColor="232,255,232" NumberOfColors="1" />
</Nodes>
</Nodes>
</Nodes>
</Nodes>
</TreeView>