This is a migrated thread and some comments may be shown as answers.

Docking slows down when dragging

3 Answers 52 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Igor.Antohin
Top achievements
Rank 1
Igor.Antohin asked on 24 Dec 2020, 07:57 AM
I have a quickly updated interface with a lot of UI elements. When trying to drag and drop RadPane, users encounter difficulties, on a slow computer it can take 30 seconds or more. I recorded a small video to make it clear what it was about. In my opinion, when dragging, it is necessary to disable the redrawing of elements inside the container, but how to do this?
I've tried set DragDropMode = DockingDragDropMode.Deferred, it's very fast, but when moving the cursor outside the main window, the application crashes.
Can you advise anything?

https://youtu.be/yD69Nj1B_Bc

3 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 28 Dec 2020, 08:21 AM

Hi Igor,

With the default DragDropMode whenever pane is dragged, its content is being removed from the current visual tree and placed inside a Window, so this operation with a lot of UI might cause delay.

As for the Deferred mode issue - we are not aware of it. Can you please provide sample project that reproduces it, so we can check it on our side? 

Basically if you provide sample project - we will investigate both of the cases and improve the control. Using the Deferred DragDropMode seems to be best solution here, so we would be glad to resolve the issue and allow you to use the feature.

I'm looking forward to hearing from you.

Regards,
Kalin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Igor.Antohin
Top achievements
Rank 1
answered on 28 Dec 2020, 10:31 AM
Hello. It's too hard. But, I get your first example "Auto Generated Tag" from SDK samples browser -> Docking.
Next, I change  DragDropMode. If "Immediate" - a new window appears outside the main form. If "Deferred", then no.
Video: https://youtu.be/2sRHNw3Ec8s
PS. Even with empty windows in this example, dragging the window in "Immediate" mode is VERY slow. (CPU - I7-3820, 16Gb)
0
Martin Ivanov
Telerik team
answered on 30 Dec 2020, 11:35 AM

Hello Igor,

I've tested both drag and drop modes in the AutoGeneratedTag SDK example, but I couldn't reproduce the performance issue in the Immediate DragDropMode. You can see the attached video. Also, you can check the attached project and let me know if I am missing anything. 

Additionally, you can check if the issue appears with the latest version of Telerik UI for WPF.

About the Deferred DragDropMode, in this case the drag/drop action of docked panes is allowed only inside of the RadDocking control. This is why when you drag out a pane. nothing happens. With this mode, you can undock a pane only via its context menu. 

Regards,
Martin Ivanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Docking
Asked by
Igor.Antohin
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Igor.Antohin
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or