Completed
Last Updated: 08 Mar 2016 06:52 by ADMIN
To reproduce:
- Bind to object-relational data
- Add node via the context menu.
- The DataBoundItem in the NodeAdding and NodeAdded events is null.

Workaround:
- Add the node in the code behind:
private void RadTreeView1_NodeAdding(object sender, RadTreeViewCancelEventArgs e)
{
    e.Cancel = true;
    RadTreeNode node = radTreeView1.SelectedNode;
    if (node.Level == 0)
    {
        data.Add(new MyParentClass() { Text = "test" });
    }

}
Completed
Last Updated: 22 Feb 2016 07:59 by ADMIN
To reproduce:

public Form1()
{
    InitializeComponent();
    this.radTreeView1.LazyMode = true; 
    this.radTreeView1.NodesNeeded+=radTreeView1_NodesNeeded;
}

private void radTreeView1_NodesNeeded(object sender, Telerik.WinControls.UI.NodesNeededEventArgs e)
{
    
}

Workaround: set the AllowArbitraryItemHeight property to true.
Completed
Last Updated: 10 Feb 2016 13:13 by ADMIN
To reproduce:
1) Create a Windows Forms project.
2) Add a RadTreeView control.
3) Set the KeyboardSearchEnabled property to true.
4) Run the application and click in the tree (just to make sure it has the focus).
5) Using the keyboard, press a letter key.
6) Minimize the application.

The same exception occurs if there are no selected nodes.

Workaround:
class MyTreeView : RadTreeView
{
    protected override RadTreeViewElement CreateTreeViewElement()
    {
        return new MyTreeViewElement();
    }
    public override string ThemeClassName
    {
        get
        {
            return typeof(RadTreeView).FullName;
        }

        set
        {
            base.ThemeClassName = value;
        }
    }
}
class MyTreeViewElement : RadTreeViewElement
{
    protected override Type ThemeEffectiveType
    {
        get
        {
            return typeof(RadTreeViewElement);
        }
    }
    protected override RadTreeNode GetFirstMatch(string searchCriteria, RadTreeNodeCollection nodes)
    {
        if(this.SelectedNode == null && this.Items == null)
        {
            return null;
        }
        return base.GetFirstMatch(searchCriteria, nodes);
    }
}

Declined
Last Updated: 19 Jan 2016 13:18 by ADMIN
An exception is thrown when changing the selection mode from Single to MultiSelect and then scrolling and selecting nodes.
Completed
Last Updated: 19 Jan 2016 10:45 by ADMIN
When you open the last node for edit programmatically, either an exception is thrown or the editor is not opened.

Steps to reproduce:

1. Drag a RadTreeView from Toolbox and drop it onto the form.
2. Set the size of RadTreeView at design time to Size(354, 248).
3. Add a RadButton.
4. Use the following code:
public Form1()
{
    InitializeComponent(); 
    radTreeView1.AllowEdit = true; 
    radTreeView1.Nodes.Add("Root");
    for (int i = 0; i < 20; i++)
    {
        radTreeView1.Nodes[0].Nodes.Add("Test" + i.ToString());
    }
}

private void radButton1_Click(object sender, EventArgs e)
{
    RadTreeNode node = new RadTreeNode("Demo" + radTreeView1.Nodes[0].Nodes.Count.ToString());
    radTreeView1.Nodes[0].Nodes.Add(node);
    node.BeginEdit();
}

5. Click the button.
6. Collapse the root node.
7. Click the button again.



Workaround:

        private void button1_Click(object sender, EventArgs e)
        {
            RadTreeNode node = new RadTreeNode("Demo" + radTreeView1.Nodes[0].Nodes.Count.ToString());
            radTreeView1.Nodes[0].Nodes.Add(node);
            this.radTreeView1.TreeViewElement.Update(RadTreeViewElement.UpdateActions.Reset);
            node.Parent.Expanded = true;
            ((MyTreeViewElement)this.radTreeView1.TreeViewElement).SuspendEndEdit = true;
            node.BeginEdit();
            ((MyTreeViewElement)this.radTreeView1.TreeViewElement).SuspendEndEdit = false;
        } 

    public class MyTreeView : RadTreeView
    {
        protected override RadTreeViewElement CreateTreeViewElement()
        {
            return new MyTreeViewElement();
        }

        public override string ThemeClassName
        {
            get
            {
                return typeof(RadTreeView).FullName;
            }
            set
            {
            }
        }
    }

    public class MyTreeViewElement : RadTreeViewElement
    {
        public bool SuspendEndEdit = false;

        protected override Type ThemeEffectiveType
        {
            get
            {
                return typeof(RadTreeViewElement);
            }
        }

        protected override bool EndEditCore(bool commitChanges)
        {
            if (SuspendEndEdit)
            {
                return false;
            }

            return base.EndEditCore(commitChanges);
        }
    }
Completed
Last Updated: 16 Dec 2015 09:03 by ADMIN
To reproduce: use the following code snippet and perform the illustrated steps on the attached gif file:

public Form1()
{
    InitializeComponent();

    for (int i = 0; i < 5; i++)
    {
        this.radTreeView1.Nodes.Add("Node" + i);
    }

    this.radTreeView1.NodeRemoving += radTreeView1_NodeRemoving;

    this.radTreeView1.AllowRemove = true;
    this.radTreeView1.AllowDefaultContextMenu = true;
}

private void radTreeView1_NodeRemoving(object sender, Telerik.WinControls.UI.RadTreeViewCancelEventArgs e)
{
    DialogResult result = RadMessageBox.Show(String.Format("Do you really want to remove the node '{0}'?", e.Node.Text),
        "Question", System.Windows.Forms.MessageBoxButtons.YesNo, RadMessageIcon.Question);

    if (result != System.Windows.Forms.DialogResult.Yes)
    {
        e.Cancel = true;
    }
}
Declined
Last Updated: 11 Nov 2015 15:05 by ADMIN
To reproduce:
public Form1()
{
    InitializeComponent(); 
    this.radTreeView1.NodesNeeded+=radTreeView1_NodesNeeded;
}

private void radTreeView1_NodesNeeded(object sender, Telerik.WinControls.UI.NodesNeededEventArgs e)
{
    Console.WriteLine("NodesNeeded"); 
}

As a result StackOverFlowException is thrown.

Workaround: Do not subscribe to the NodesNeeded event if the LazyMode property is set to false.
Completed
Last Updated: 05 Nov 2015 12:22 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 0
Category: TreeView
Type: Bug Report
0
To reproduce:

public BlankTreeView()
{
    InitializeComponent();
    RadContextMenu menu = new RadContextMenu();
    RadMenuItem addItem = new RadMenuItem("Add");
    addItem.Click += addItem_Click;
    menu.Items.Add(addItem);
    this.radTreeView1.RadContextMenu = menu;
    
    BindingList<ParentObject> items = new BindingList<ParentObject>();
    for (int i = 0; i < 3; i++)
    {
        BindingList<ChildObject> subItems = new BindingList<ChildObject>();
        for (int j = 0; j < 10; j++)
        {
            subItems.Add(new ChildObject(j,"SubNode" + i + "." + j));
        }

        items.Add(new ParentObject(i ,"Node" + i,subItems));
    }

    this.radTreeView1.DataSource = items;
    this.radTreeView1.DisplayMember = "Title\\Description";
    this.radTreeView1.ChildMember = "ParentObject\\Children";
}

private void addItem_Click(object sender, EventArgs e)
{
    if (this.radTreeView1.SelectedNode != null)
    {
        if (this.radTreeView1.SelectedNode.Level == 0)
        {
            Random rand = new Random(); 
            ParentObject dataItem = this.radTreeView1.SelectedNode.DataBoundItem as ParentObject;
            if (dataItem != null)
            {
                dataItem.Children.Add(new ChildObject(rand.Next(0, 100),"New Node"));
            } 
        }
    }
}

public class ParentObject: INotifyPropertyChanged
{
    public event PropertyChangedEventHandler PropertyChanged;

    protected virtual void OnPropertyChanged(string propertyName)
    {
        if (PropertyChanged != null)
        {
            PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }
    }
    
    private int id;
    private string title;
    private BindingList<ChildObject> children;

    public int ID
    {
        get
        {
            return this.id;
        }
        set
        {
            this.id = value;
            OnPropertyChanged("ID");
        }
    }

    public string Title
    {
        get
        {
            return this.title;
        }
        set
        {
            this.title = value;
            OnPropertyChanged("Title");
        }
    }

    public BindingList<ChildObject> Children
    {
        get
        {
            return this.children;
        }
        set
        {
            this.children = value;
            OnPropertyChanged("Children");
        }
    }

    public ParentObject(int iD, string title, BindingList<ChildObject> children)
    {
        this.ID = iD;
        this.Title = title;
        this.Children = children;
    }
}

public class ChildObject: INotifyPropertyChanged
{ 
    public event PropertyChangedEventHandler PropertyChanged;

    private int id;
    private string description;

    public int ID
    {
        get
        {
            return this.id;
        }
        set
        {
            this.id = value;
            OnPropertyChanged("ID");
        }
    }

    public string Description
    {
        get
        {
            return this.description;
        }
        set
        {
            this.description = value;
            OnPropertyChanged("Description");
        }
    }

    public ChildObject(int iD, string description)
    {
        this.id = iD;
        this.description = description;
    }

    protected virtual void OnPropertyChanged(string propertyName)
    {
        if (PropertyChanged != null)
        {
            PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}

Workaround: reset the TreeViewElement after adding the record:

radTreeView1.TreeViewElement.Update(RadTreeViewElement.UpdateActions.Reset);
Completed
Last Updated: 29 Oct 2015 12:00 by ADMIN
To reproduce:
- Add items to the tree view (scrollbar must appear)
- Add context menu item which adds a new node and puts it in edit mode.
- Add a new node with the context menu item, scroll to the bottom, add item again.
- Scroll up and add item one more time.

Workaround:
void treeView_EditorRequired(object sender, TreeNodeEditorRequiredEventArgs e)
{
    e.Editor = new TreeViewTextBoxEditor();
}
Completed
Last Updated: 29 Oct 2015 07:31 by ADMIN
To reproduce: 
           radTreeView1.CheckBoxes = true;
            radTreeView1.TriStateMode = true;
            radTreeView1.AutoCheckChildNodes = true;

            RadTreeNode root = radTreeView1.Nodes.Add("Home");
            root.Expanded = true;

            RadTreeNode node1 = new RadTreeNode("Minimal");
            node1.CheckState = Telerik.WinControls.Enumerations.ToggleState.On;

            root.Nodes.Add(node1);

Workaround: first add the node to the Nodes collection and only then set its CheckState
Completed
Last Updated: 29 Oct 2015 07:20 by ADMIN
To reproduce:

public Form1()
{
    InitializeComponent();

    for (int i = 0; i < 20; i++)
    {
        this.radTreeView1.Nodes.Add("Node"+i);
    }
    this.radTreeView1.AllowEdit = true;
}

The attached gif file illustrates the steps.

Workaround:
 this.radTreeView1.VScrollBar.ValueChanged+=VScrollBar_ValueChanged;
private void VScrollBar_ValueChanged(object sender, EventArgs e)
{
    this.radTreeView1.EndEdit();
}
Completed
Last Updated: 14 Oct 2015 13:25 by ADMIN
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();
}
Completed
Last Updated: 12 Sep 2015 06:03 by ADMIN
Workaround:

After updating the binding source reset the data source of the tree

this.radTreeView.DataSource = null;

this.radTreeView.DataSource = this.MyBindingSource;
Completed
Last Updated: 20 Aug 2015 09:39 by ADMIN
ADMIN
Created by: Julian Benkov
Comments: 1
Category: TreeView
Type: Feature Request
6
RadTreeView - export, print content

possible supported file types: pdf, excel, html
Completed
Last Updated: 30 Jun 2015 08:28 by ADMIN
To reproduce:

public Form1()
{
    InitializeComponent();

    this.radTreeView1.AllowDragDrop = true;
    this.radTreeView2.AllowDragDrop = true;
    for (int i = 0; i < 5; i++)
    {
        this.radTreeView1.Nodes.Add("Node1." + i);
        this.radTreeView2.Nodes.Add("Node2." + i);
    }
    this.radTreeView1.ScreenTipNeeded += radTreeView1_ScreenTipNeeded;
    this.radTreeView2.ScreenTipNeeded += radTreeView1_ScreenTipNeeded;
}

RadOffice2007ScreenTipElement _screenTip = new RadOffice2007ScreenTipElement();

private void radTreeView1_ScreenTipNeeded(object sender, Telerik.WinControls.ScreenTipNeededEventArgs e)
{
    _screenTip.CaptionLabel.Text = "Caption";
    _screenTip.MainTextLabel.Text = "text";
    _screenTip.AutoSize = true;
    e.Delay = 2000;
    e.Item.ScreenTip = _screenTip;
}

Steps:
1. Drag a node from the first RadTreeView to the other while the screen-tip is shown for the dragged node.
2. When the screen-tip is about to be hidden, the error occurs.

Workaround:

private void radTreeView1_DragStarting(object sender, RadTreeViewDragCancelEventArgs e)
{
    if (_screenTip.IsElementVisible)
    {
        this.radTreeView1.Behavior.HideScreenTip();
    }
   
}
Declined
Last Updated: 17 Jun 2015 10:36 by ADMIN
ADMIN
Created by: Julian Benkov
Comments: 1
Category: TreeView
Type: Bug Report
0
In self-reference mode you can not have root Nodes with different ID's

Completed
Last Updated: 06 Apr 2015 13:56 by ADMIN
ADMIN
Created by: Stefan
Comments: 0
Category: TreeView
Type: Feature Request
1
drag select nodes. I.e - Left click and drag to highlight / select a bunch of nodes in a treeview. 
Ticket ID: 319445
Completed
Last Updated: 29 Jan 2015 16:03 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 0
Category: TreeView
Type: Bug Report
0
Workaround:

class CustomDragDropService : TreeViewDragDropService
{
    public CustomDragDropService(RadTreeViewElement owner) : base(owner)
    {
        
    }

    protected override void SetHintWindowPosition(Point mousePt)
    {
    }
}

class CustomTreeViewElement : RadTreeViewElement
{
    protected override Type ThemeEffectiveType
    {
        get
        {
            return typeof(RadTreeViewElement);
        }
    }

    protected override TreeViewDragDropService CreateDragDropService()
    {
        return new CustomDragDropService(this);
    }
}

class CustomTreeView : RadTreeView
{
    protected override RadTreeViewElement CreateTreeViewElement()
    {
        return new CustomTreeViewElement();
    }

    public override string ThemeClassName
    {
        get
        {
            return typeof(RadTreeView).FullName;
        }
    }
}
Completed
Last Updated: 29 Jan 2015 15:53 by ADMIN