RadDock control position

2 posts, 0 answers
  1. Iurie
    Iurie avatar
    1 posts
    Member since:
    Jun 2009

    Posted 05 Jun 2009 Link to this post

    Dear Telerik,

    Is it possible to put a limitation area when dragging a  RadDock control?
    I mean that the client does not like that he has the possibility to drag(move) RadDock in the right side or in the bottom side infinitely.
    This is reproduce both in IE and FF.
    I took a look of the Telerik site exmaple:http://mono.telerik.com/Dock/Examples/ClientSideEvents/DefaultCS.aspx and tried to do the same thing with a RadDock and it is reproduced.
    I wrote the following js event for OnClientDrag
    function dockDrag(dock, e)
        var location = dock._getLocation();
        var x=location.x;
        var y=location.y;
        location.y = maxAllowed;
    but with no effects.

    Could you please help me if there is a solution.

    Thanks very much.
  2. Obi-Wan Kenobi
    Obi-Wan Kenobi  avatar
    460 posts
    Member since:
    Aug 2007

    Posted 09 Jun 2009 Link to this post

    The RadDock control doesn't have "restriction zone" functionality and you couldn't disable dragging outside of such an area via JavaScript.
    Only the RadWindow has such a functionality:

Back to Top