Completed
Last Updated: 24 Nov 2011 10:47 by ADMIN
FIX. RadTreeView - the GradientStyle property of RadTreeNode is overriden by the theme, even though it is set locally
The first part of the issue, regarding RadTreeNode.BackColor is addressed.
There is no issue with the persistance of GradientStyle property. To persist the GradientStyle property you should set its value explicitly. Here is an example:
void radTreeView1_NodeFormatting(object sender, TreeNodeFormattingEventArgs e)
{
if (radTreeView1.SelectedNode != null)
{
if (e.Node == radTreeView1.SelectedNode)
{
e.NodeElement.BackColor = Color.Yellow;
e.NodeElement.BackColor2 = Color.White;
e.NodeElement.GradientStyle = Telerik.WinControls.GradientStyles.Linear;
e.NodeElement.DrawFill = true;
e.NodeElement.NumberOfColors = 2;
return;
}
}
e.NodeElement.ResetValue(LightVisualElement.BackColorProperty, Telerik.WinControls.ValueResetFlags.Local);
e.NodeElement.ResetValue(LightVisualElement.BackColor2Property, Telerik.WinControls.ValueResetFlags.Local);
e.NodeElement.ResetValue(LightVisualElement.GradientStyleProperty, Telerik.WinControls.ValueResetFlags.Local);
e.NodeElement.ResetValue(LightVisualElement.DrawFillProperty, Telerik.WinControls.ValueResetFlags.Local);
e.NodeElement.ResetValue(LightVisualElement.NumberOfColorsProperty, Telerik.WinControls.ValueResetFlags.Local);
}
Completed
Last Updated: 18 Apr 2012 04:22 by ADMIN
FIX. RadTreeView - exception while filtering a tree scrolled to the bottom end point
Completed
Last Updated: 05 Mar 2014 08:33 by ADMIN
ADMIN
Created by: Georgi I. Georgiev
Comments: 0
Category: TreeView
Type: Bug Report
0
To reproduce: Add a RadTreeView with hierarchical data. Select a node with hierarchy level > 0. Call the Clear method of the Nodes collection. Refill the tree, drag and drop a node, you will see that two nodes will be dropped since the previous node's Selected property is set to true. 

Workaround: private void DetachAllNodes(RadTreeNode parent) { this.CleanNode(parent); foreach (RadTreeNode node in parent.Nodes) { this.DetachAllNodes(node); } } private void CleanNode(RadTreeNode node) { node.Current = false; node.Selected = false; } foreach (RadTreeNode node in tree.Nodes) { this.DetachAllNodes(node); } tree.Nodes.Clear();
Completed
Last Updated: 31 Mar 2014 10:27 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 0
Category: TreeView
Type: Feature Request
0
Add e.Action in SelectedNodeChanging similar to the one in the standard TreeView.BeforeSelect event which indicates what caused the event - mouse click, key pressed, or other
Completed
Last Updated: 20 Feb 2014 15:26 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 0
Category: TreeView
Type: Bug Report
0
To reproduce:
-add RadTreeView and RadButton:
-use the following code:

public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
        List<Distributor> distributors = new List<Distributor>()
        {
            new Distributor(432,"Distributor 1"),
            new Distributor(454,"Distributor 2"),
            new Distributor(438,"Distributor 3"),
            new Distributor(455,"Distributor 4")
        };

        List<Distributor> distributors2 = new List<Distributor>()
        {
            new Distributor(486,"Distributor 5"),
            new Distributor(487,"Distributor 6"),
            new Distributor(498,"Distributor 7"),
            new Distributor(475,"Distributor 8")
        };

        List<Product> products = new List<Product>();
        products.Add(new Product(567, "Bicycle", 5, distributors));
        products.Add(new Product(456, "Car", 5000,distributors2));
        products.Add(new Product(789, "Bike", 1500,null));

        BindingList<Category> categories = new BindingList<Category>();
        categories.Add(new Category("Bikes", products));
        categories.Add(new Category("Accessories", null));
        categories.Add(new Category("Clothing", null));

        radTreeView1.DataSource = categories;
        if ((radTreeView1.DataSource as BindingList<Category>).Count > 0)
        {
            radTreeView1.DisplayMember = "Name\\Description\\Name";
            radTreeView1.ChildMember = "Categories\\Products\\Distributors";   
        }
        
    }

    private void radButton1_Click(object sender, EventArgs e)
    {
        BindingList<Category> categories = radTreeView1.DataSource as BindingList<Category>;
        categories.Clear();
    }
}

public class Distributor
{
    private int _id;
    private string _name;

    public Distributor(int id, string name)
        {
            this._id = id;
            this._name = name;
        }

    public int Id
        {
            get
            {
                return this._id;
            }
            set
            {
                this._id = value;
            }
        }

    public string Name
        {
            get
            {
                return this._name;
            }
            set
            {
                this._name = value;
            }
        }
}

public class Product
{
    private int _id;
    private string _description;
    private float _price;
    private List<Distributor> _distributors;

    public List<Distributor> Distributors
        {
            get
            {
                return this._distributors;
            }
            set
            {
                this._distributors = value;
            }
        }

    public int ID
        {
            get
            {
                return _id;
            }
            set
            {
                _id = value;
            }
        }

    public string Description
        {
            get
            {
                return _description;
            }
            set
            {
                _description = value;
            }
        }

    public float Price
        {
            get
            {
                return _price;
            }
            set
            {
                _price = value;
            }
        }

    public Product(int id, string description, float price, List<Distributor> distributors)
    {
        _id = id;
        _description = description;
        _price = price;
        _distributors = distributors;
    }
}

public class Category
{
    public Category(string name, List<Product> products)
    {
        _name = name;
        _products = products;
    }

    private List<Product> _products;
    private string _name;

    public string Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
            }
        }

    public List<Product> Products
        {
            get
            {
                return _products;
            }
            set
            {
                _products = value;
            }
        }
}

When you click the button, ArgumentOutOfRangeException is thrown.

Workaround: instead of clearing the BindingList, remove each list item one by one:
while (categories.Count>0)
{
    categories.RemoveAt(0);
}
Completed
Last Updated: 22 Oct 2013 11:54 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 0
Category: TreeView
Type: Bug Report
0
To reproduce: this issue is reproducible under Windows8 OS only
-add RadTreeView from the Toolbox to the Form and add several tree nodes at design time;
-add RadContextMenu from the Toolbox and add several items at design time;
Use the following code:
public Form1()
{
    InitializeComponent();

    this.radTreeView1.RadContextMenu = this.radContextMenu1;
}
-run the application;
-select a tree node;
-right mouse click over the node to show the context menu; As a result the main form looses focus and you are unable to click anywhere outside the RadTreeView.
This issue is inconstant and it is not appearing every time.

Workaround: use ContextMenu property instead:
public Form1()
{
    InitializeComponent();

    ContextMenu menu = new ContextMenu();

    foreach (var item in radContextMenu1.Items)
    {
        menu.MenuItems.Add(new MenuItem(item.Text));
    }

    this.radTreeView1.ContextMenu = menu;
    // this.radTreeView1.RadContextMenu = this.radContextMenu1;
}
Completed
Last Updated: 26 Nov 2012 09:19 by ADMIN
1. Create a new project and add empty RadTreeView when handling its Form.Load event.
2. Set its AutoSize property to true.
3. Run the project.
Completed
Last Updated: 26 Oct 2011 06:27 by Svetlin
Improve the TreeViewDragDropService extensibility by allowing replacing the default remove behavior with copy behavior.
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: 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.
Declined
Last Updated: 26 Dec 2014 14:34 by ADMIN
Allow setting the AutoExpand time of node when drag operation is performing.
Completed
Last Updated: 05 Aug 2014 13:13 by ADMIN
I can type to select a node.  For example, if I click to select the Car node, then type "V", selection jumps to the "Van" node.  I can right-arrow to expand, then type "U" to select the "Useful" node.

Resolution: 
Added two new properties: KeyboardSearchEnabled and KeyboardSearchResetInterval. When set the KeyboardSearchEnabled property to true, user can navigate to an item by typing when RadTreeView is focused. You can set how long the user must wait before searching with the keyboard is reset using the KeyboardSearchResetInterval property. 
Completed
Last Updated: 09 Mar 2012 05:29 by ADMIN
ADMIN
Created by: Julian Benkov
Comments: 0
Category: TreeView
Type: Bug Report
0
I have implemented filtering in radtreeview by using following code in filter button click event:

rtvTaxReturnLines.filter=textFilter.text;

Note: here rtvTaxReturnLines is radtreeview name.

It filter the result by text given by user in textbox.But after filtering if we want to drag and drop some filter results from the treeview to gridview or within the treeview then it is not allowing dragdrop service in filtered result.
Completed
Last Updated: 12 May 2011 06:59 by ADMIN
ADMIN
Created by: Julian Benkov
Comments: 0
Category: TreeView
Type: Feature Request
0
Event and Sort(IComparer) method.
Completed
Last Updated: 20 Apr 2012 04:27 by ADMIN
It seems that when you try to collapse a node the application thread crashes. The exception seems to point pretty firmly at the Telerik control - when it is applying styles to a node?
Completed
Last Updated: 08 May 2012 04:13 by ADMIN
ADMIN
Created by: Julian Benkov
Comments: 0
Category: TreeView
Type: Bug Report
0
I want (for some reason) make nodes in treeview checked in "one line" (i.e. in Nodes collection of any node - no more than one child could be checked). Also, latest (i.e. deepest) node should be selected.

In attached example (see Example.zip):
1. Check node "Node 19" (as a result - nodes "Node 1", "Node 18" and "Node 19" checked and "Node 19" is selected).
2. Uncheck node "Node 1". Should be - nodes "Node 18" and "Node 19" checked and "Node 19" is selected. As a result - exception arised (see text of exception in Exception.zip).

I suppose that it may be connected with "invisibility" of "Node 19" (I mean, if I make this actions with "Node 3" - it works fine).
Unplanned
Last Updated: 15 Aug 2017 09:33 by ADMIN
ADMIN
Created by: Julian Benkov
Comments: 0
Category: TreeView
Type: Feature Request
0
Private Sub LoadTvObjectInApp()
 
        Dim objectInApps As IQueryable(Of ObjectInApp)
        objectInApps = _context.ObjectInApps.Where(Function(c) (c.ApplicatieCode = "zis") AndAlso Not (c.GroepNaam = "hulp" AndAlso c.IsSysteemObject = True))
        
Unplanned
Last Updated: 15 Aug 2017 09:23 by ADMIN
I need to drop a simple plain text from a textbox into a Rad Treeview.
I just read the forum, I'm mixing OLE Drag & Drop and RadTreeView Drag & Drop. The Events seems to be right and they seems to work fine.
But I'm just having a problem with the Visual Indicators of the treeview:

When I drag a regular node inside the treeview, I can see that visual indicators (the target node is highlighted, I can see a line of dots showing the direction above or below the target node, or the "forbidden" cursor, etc).
And when I actually try to drag a simple text inside the treeview, I don't see any of those stuff.
I need the same visual behavior when dropping a simple text. I need to see the indicators and I don't know how to activate them.
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: 19 Sep 2012 02:48 by ADMIN
To reproduce:

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

Work around: None