To reproduce : add a RadTreeView with several nodes and use the following code snippet: this.radTreeView1.AllowDragDrop = true; this.TopMost = true; Note that dragging a node will no longer display the "DropHint" line. Workaround: class CustomDragDropService : TreeViewDragDropService { public CustomDragDropService(RadTreeViewElement owner) : base(owner) { } protected override void UpdateHintPosition(Point mousePosition) { FieldInfo fi = typeof(TreeViewDragDropService).GetField("dropHintWindow", BindingFlags.NonPublic | BindingFlags.Instance); RadLayeredWindow window = fi.GetValue(this) as RadLayeredWindow; window.TopMost = true; base.UpdateHintPosition(mousePosition); } } class CustomTreeViewElement : RadTreeViewElement { //Enable themeing for the element protected override Type ThemeEffectiveType { get { return typeof(RadTreeViewElement); } } //Replace the default drag drop service with the custom one protected override TreeViewDragDropService CreateDragDropService() { return new CustomDragDropService(this); } } class CustomTreeView : RadTreeView { //Replace the default element with the custom one protected override RadTreeViewElement CreateTreeViewElement() { return new CustomTreeViewElement(); } //Enable theming for the control public override string ThemeClassName { get { return typeof(RadTreeView).FullName; } } }
NullReferenceException is thrown, when end edit performs in RadTreeView. To reproduce the issue: 1. Bind the grid to table 2. Add new record programmatically 3. Call BeginEdit of the added node 4. Edit the text of the node from the editor 5. Press ENTER 6. Exception is thrown.
Adding or removing node through BindingList API collapse all nodes in self-referencing hierarchy in RadTreeView.
If you perform radTreeView.Nodes.Clear method and then load new nodes by using the LoadXML method, the drag and drop behavior is corrupted.
The RadTreeView throws exception when the BindingSource.CancelEdit is invoked.
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; } } }
When the RadTreeView is disabled, nodes text is rendered as bold text.
The SelectedNodes collection is not cleared, when the clear all nodes in single selection mode.
The node find methods of RadTreeView should not perform over the inernal RootTreeNode.
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.
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>
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.
1. Set the AllowArbitraryItemHeight property of a RadTreeView to true 2. Open the RadTreeView Property Builder for that RadTreeView 3. Add an item to the root 4. Click on the item 5. Click on advanced 6. Set the ItemHeight to a custom value (e.g. 40) 7. Click apply 8. Reopen the Property Builder - you will notice that the ItemHeight value is reset.
If you hide a node using the advanced builder go to an other node and they try to get back to the first node, you will notice that you will not be able to do so.
RadTreeView should be able to bind to subproperties.
When you set a new localization provider to RadTreeView, the strings of the nodes' context menu are not changed
Currently, when a node is checked its parent/child nodes are checked accordingly and for each node that has its checked state changed the NodeCheckedChanged is fired. However, there is not way to know whether the event is fired because of manual user action on the node (clicking the checkbox, pressing Space/Enter keys) or because the node is in parent/child relation with the 'clicked' node. So, event arguments about that should be added.
Steps to reproduce: public partial class Form3 : Form { private RadTreeView treeView = new RadTreeView(); private BindingSource bindingSource = new BindingSource(); private BindingSource bindingSource2 = new BindingSource();
Unable to add a Node when RadTreeView is sorted - Please, refer to QSF->PivotGrid->Settings example and click twice on the Product filter to open the filter dialog.
TreeViewDragDropService cannot be canceled on the following event: radTreeView1.TreeViewElement.DragDropService.PreviewDragOver