prevent dock from being dropped on pinned dock

2 posts, 0 answers
  1. Lee Vang
    Lee Vang avatar
    4 posts
    Member since:
    Feb 2010

    Posted 19 Jul 2011 Link to this post

    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?
  2. Slav
    Slav avatar
    1359 posts

    Posted 20 Jul 2011 Link to this post

    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.

    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!

Back to Top