This is a migrated thread and some comments may be shown as answers.
RadDock control position
1 Answer 25 Views
This is a migrated thread and some comments may be shown as answers.
Iurie
Top achievements
Rank 1
Iurie asked on 05 Jun 2009, 03:05 PM
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;
    if(y>maxAllowed)
    {
    location.y = maxAllowed;
    dock._setLocation(location);
  //or
   dock.set_top(location.y);
    }
}
but with no effects.

Could you please help me if there is a solution.

Thanks very much.

1 Answer, 1 is accepted

Sort by
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 09 Jun 2009, 01:45 PM
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:
http://demos.telerik.com/aspnet-ajax/window/examples/restrictionzone/defaultcs.aspx

Tags
Dock
Asked by
Iurie
Top achievements
Rank 1
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
Share this question
or