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

prevent dock from being dropped on pinned dock

1 Answer 32 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Lee Vang
Top achievements
Rank 1
Lee Vang asked on 19 Jul 2011, 09:09 PM
Does anybody know how (using c#) I can prevent dragging and dropping onto another dock that is pinned?  When a dock is pinned, you can no longer move it.  However, you can drag another dock to it's place and that bumps the pinned dock down one position.  In essence allowing a user to move it while it's supposed to be pinned.  How do I prevent this behavior?

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 20 Jul 2011, 03:27 PM
Hello Lee,

I tried to reproduce the issue you encountered, but to no avail. As I am not sure about the exact scenario, I prepared two samples for you:

In case you mean pin and unpin of floating RadDocks, I have added a short video, showing the behavior I experienced during testing your scenario. You can also find my test sample attached, with Default.aspx  used for the test. Please compare it with your project and try modifying it so that it matches your case.

If you want to deny pushing down RadDocks when a new one is dropped in the RadDockZone, you can set this zone as forbidden for the additional docks via the ForbiddenZones property of RadDock. I have implemented this approach in the Default2.aspx page from the sample project.

Please use the one closer to your requirement as a base to extend your functionality.

If you are still unable to solve your issue, please open a regular support ticket and prepare and send us a simple, runnable project that isolates your behavior so that we can inspect it locally and pinpoint the cause.

Regards,
Slav
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Dock
Asked by
Lee Vang
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or