Completed
Last Updated: 14 Oct 2015 13:25 by ADMIN
ADMIN
Dimitar
Created on: 08 Oct 2015 11:06
Category: TreeView
Type: Bug Report
0
FIX. RadTreeView - the scroll does not appear when the nodes are loaded in the NodesNeeded event.
To reproduce:
private void radTreeView1_NodesNeeded(object sender, Telerik.WinControls.UI.NodesNeededEventArgs e)
{
    for (int i = 0; i < 100; i++)
    {
        var node = new RadTreeNode("Test"+i);
        for (int j = 0; j < 10; j++)
        {
            node.Nodes.Add(new RadTreeNode("Sub"));
        }
        node.Expanded = true;

        e.Nodes.Add(node);
    }
}

Workaorund:
private void radTreeView1_NodesNeeded(object sender, Telerik.WinControls.UI.NodesNeededEventArgs e)
{
    radTreeView1.BeginUpdate();
    for (int i = 0; i < 100; i++)
    {
        var node = new RadTreeNode("Test"+i);
        for (int j = 0; j < 10; j++)
        {
            node.Nodes.Add(new RadTreeNode("Sub"));
        }
        node.Expanded = true;

        e.Nodes.Add(node);
       

    }
    radTreeView1.EndUpdate();
}
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments