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

Drag&Drop for CollapsiblePanel

1 Answer 97 Views
CollapsiblePanel
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 21 Nov 2019, 10:35 AM

I add RadCollapsiblePanel programmaticly to a form (Dock Top).

Is it possible to change the order of the CollapsiblePanel via Drag&Drop?

An alternative could be 2 Buttons (Up/Down) but D&D will be the best solution.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 21 Nov 2019, 02:38 PM
Hello, Martin,

If I understand your requirement correctly, you want to move RadCollapsiblePanel on the form at run time by using drag and drop. Actually, it is more like a general programming question and a similar approach can be followed for all standard MS Controls as well. The main purpose here is th adjust the Location property of the affected control. The following threads give a sample approach how you can achieve a similar behavior:

https://stackoverflow.com/questions/2439061/move-controls-when-drag-and-drop-on-panel-in-c-sharp 
https://www.codeproject.com/Questions/665484/Csharp-Drag-and-Drop-Copying-Controls 
https://social.msdn.microsoft.com/Forums/vstudio/en-US/21fae694-4ea8-46f2-8d0c-f00748819925/move-controls-when-drag-and-drop-on-panel-in-c?forum=winforms 

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
CollapsiblePanel
Asked by
Martin
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or