I downloaded the sample for the drag & drop. But when I ran it, I noticed that that drag & drop from TreeViewAdv to DockingManager does not do anything. Is there anything that you have to do so that drop can actually happen?
Thanks.
Moon
>
Hi Shaun,
Thanks for your interests in Syncfusion products.
Displaying DragProvider through programatically is not possible since that is runtime behavior, so the users can drop the dragged item, and it will create as float window, then you can dock it any where in the client area using the mouse. Instead if you need dropped window as a Dock Window kindly make use of the code snippet.
//For dropped window as Dock Window
DockingManager.SetSideInDockedMode(dockPanel, DockSide.Right);
DockingManager.SetState(dockPanel, DockState.Dock);
It is very easy to dynamically add items to the right location in our Docking Manager. And our API's are very user friendly, For instance sftools:DockingManager.SideInDockedMode="Bottom" is the one you have mentioned in your update, which is a simple attached property. Kindly make use of the following code snippet to set the SetSideInDockedMode programmatically.
DockingManager.SetSideInDockedMode(depedencyobject,DockSide.Bottom);
It's very simple when you try to programmatically add new windows in DockingManager.
For your reference we are sending you a simple sample, where we have explained how Docking Manager are added dynamically and dropped window as a Float Window. Kindly download it from the below mentioned location.
http://www.syncfusion.com/support/user/uploads/DockingSampe123-813719387.zipPlease let us know if you have any queries.
Regards,
Bala.