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();
To reprodice: for (int i = 0; i < 20; i++) { RadTreeNode node = new RadTreeNode("Node " + i); node.ToolTipText = "hello " + i; radTreeView1.Nodes.Add(node); }
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.
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);
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.
Use the scrollintoview method of the tree to select a node while the treeview has not the focus.
To reproduce: for (int i = 0; i < 10; i++) { RadTreeNode node = new RadTreeNode("Node " + i); radTreeView1.Nodes.Add(node); node.Style.GradientStyle = GradientStyles.Solid; node.Style.BackColor = System.Drawing.Color.LightCoral; } Workaround: use NodeFormatting
1. Set CheckBoxes property of RadTreeView to true. 2. Set TriStateMode property of RadTreeView to true. 3. Cancel the node checked state property of a node in the NodeCheckedChanging event 4. The parent node will not be in intermediate checked state.
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).
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?
FIX. RadTreeView - exception while filtering a tree scrolled to the bottom end point
The problem may be reproduced in example application in TreeView/First Look The scenario is as follows: -enter some text as a filter -delete text - filter should be off -add new node by context menu -> "New Node" appears twice in the tree view
When using TriStateMode with AutoCheckChildNodes, there is no way to determine whether the events are raised by a user action or by programatically checking a node. view: CheckedMode enumeration for details
The checked state of parent node is incorrect when TriStateMode is enabled and it has a child node with no check type.
To reproduce: public Form1() { InitializeComponent(); for (int i = 0; i < 10; i++) { RadTreeNode node = new RadTreeNode("Root node " + i); for (int j = 0; j < 10; j++)
Hide the AutoScroll property of RadTreeView in design time
FIX. RadTreeView - SelectedNode and SelectedNodes should be cleared when the DataSource of the control is set to null test app: using System; using System.Data; using System.Windows.Forms; using Telerik.WinControls.UI; namespace Lab.Tree { public partial class TreeResetSelectionAfterDataSourceIsSetToNull : MainForm { private RadTreeView treeView = new RadTreeView(); public TreeResetSelectionAfterDataSourceIsSetToNull() { InitializeComponent(); treeView.Dock = DockStyle.Fill; treeView.Parent = this; treeView.BringToFront(); DataTable table = new DataTable(); table.Columns.Add("Id"); table.Columns.Add("Name"); table.Rows.Add("1", "name1"); table.Rows.Add("2", "name2"); table.Rows.Add("3", "name3"); treeView.DisplayMember = "Name"; treeView.DataSource = table; treeView.MultiSelect = true; } protected override void OnButton1Click() { Console.WriteLine(treeView.SelectedNodes.Count); Console.WriteLine(treeView.SelectedNode); treeView.DataSource = null; Console.WriteLine("-------------------------------------------"); Console.WriteLine(treeView.SelectedNodes.Count); Console.WriteLine(treeView.SelectedNode); } } }
Checked state of the disabled nodes's check boxes is changed after scrolling.
FIX. RadTreeView - the text of disabled nodes is not aligned correctly
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.