Hello,
Is it possible to prevent RadTreeView entering edit mode when you click on a selected node? We would still like nodes to be editable but only when the user presses F2 or when we programmatically enter edit mode.
Thanks,
Hayley
Not sure where I can submit a bug report but to replicate...
Create nodes on a RadNodeTree.
DoDragDrop on the node that is drag through NodeDragStart
When Node is dropped onto Scheduler, create the appointment.
This causes the program to flicker a lot and multiple appointments are created.
Private Sub MyNodeTree_DragStarted(sender As Object, e As RadTreeViewDragEventArgs) Handles MyNodeTree.DragStarted
If e.Node.Level = 0 Then
MyNodeTree.DoDragDrop(e.Node, DragDropEffects.All)
Else
Return
End If
End Sub
Private Sub RadScheduler1_DragEnter(sender As Object, e As DragEventArgs) Handles RadScheduler1.DragEnter
If e.Data.GetDataPresent(GetType(RadTreeNode)) = True Then
e.Effect = DragDropEffects.All
End If
End Sub
Private Sub RadScheduler1_DragDrop(sender As Object, e As DragEventArgs) Handles RadScheduler1.DragDrop
Dim node As RadTreeNode = e.Data.GetData(GetType(RadTreeNode))
Dim point As Point = Me.ScheduleCalendar.PointToClient(New Point(e.X, e.Y))
Dim schedulerCell As SchedulerCellElement = SchedulerUIHelper.GetCellAtPoint(point, Me.ScheduleCalendar)
If schedulerCell IsNot Nothing Then
Dim dragObject As String = e.Data.GetDataPresent(GetType(String))
If dragObject IsNot Nothing Then
ScheduleCalendar.Appointments.BeginUpdate()
Dim ap As New Appointment(schedulerCell.Date, TimeSpan.FromMinutes(1), node.Name, "")
ap.AllDay = True
ap.BackgroundId = node.Index + 1
Me.ScheduleCalendar.Appointments.Add(ap)
ScheduleCalendar.Appointments.EndUpdate()
End If
End If
End Sub
We use Telerik UI for Winforms extensively in our Windows application. We have migrated almost all of our UI to use Telerik UI for Winforms but we were using a 2014 release of Telerik. Last month we updated to the latest (Q1 2022) Telerik UI for Winforms and began converting the last 3 major tree controls in our UI to use the RadTreeView. The biggest of these tree controls can have a lot of nodes. Some of our customers will exceed 750000 nodes in their installations.
We have found that when sorting is enabled, especially our custom sort which is necessary for our implementation, the tree control takes a VERY long time to load and also a very long time to repopulate when a leaf node with its children is removed and then re-added. Of note when we remove/re-add a leaf node is that if I put a breakpoint into our NodeComparer implementation I see that many nodes from all over the tree are being compared. The comparisons include nodes that are at the root of the tree and were not affected since the node(s) removed were 4 or 5 levels down and restricted in scope to just one sub-collection. I am very surprised that the RadTreeView re-sorts ALL of the tree nodes rather than just the nodes in the affected collection?
Are there ways to restrict sorting to just the collection affected by the addition/removal of a node?
I know that when you select a node this event is called.
If you select another node, it is called TWICE.
Is there a way to know which it is calling it for (Unselecting or Selecting).
This way I can skip code on the unselecting one and only do code on the newly selected node.
Thanks,
Hi
I want to display report using radtreeview controls. Can somebody help me regarding that i am new to radtreeview control. Currently I am using radgridview to display report.
Thanks
Hello,
I followed this thread to add a button on every node of my treeview (https://www.telerik.com/forums/how-to-add-button-in-every-node)
Now, I would like to know if it's possible to stick those buttons on the right side of the tree view.
I tried to use the alignment property of the button but no luck... Any solutions?
Thank you in advance for your help.
I am running Telerik Theme Viewer for WinForm where RadTreeView is not working correctly for Office2019Dark Theme (setup: "Telerik_UI_For_WinForms_2021_3_914_Trial.msi").
Is this a bug or something else?