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

How to prevent a RadDock being dragged out of a div

5 Answers 146 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 14 Dec 2007, 06:04 PM
I am attempting to prevent a RadDock from being dragged outside of a div containing three RadDockZones. The reason I am trying to do so is that I want RadDocks to be confined to a particular region on the page without being able to drag off that region.

The PortalSite demo shows that the current implementation doesn't prevent you from dragging RadDocks into infinity off the right and bottom hand of your page, allowing the user to scroll well beyond the page. If the dock could be confined to a div area then this could be prevented and could also be useful for other scenarios, though I would accept not being able to drag the docks infinitely off the page as Google IG does.

I assume confining the docks is a question of constantly evaluating the div's position on the OnClientDockPositionChanging event and if the area of the dock is outside the boundary of the current div's positioning, then we'd have to find a way to prevent the position change without exiting the drag, but this would likely greatly affect performance.

5 Answers, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 15 Dec 2007, 12:20 PM
Hi Daniel,

Thank you for your interest in the controls' development. The request for limitting the dock drag area is logged in our TODO list. It has been requested before as well and mainly for RadWindow. We will try to provide this functionality for RadWindow first - we will do our best for the first official release Q1 in 2008 and as soon as it works in RadWindow we will work on providing it for RadDock Prometheus as well.

All the best,
Petya
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Matthew
Top achievements
Rank 1
answered on 20 Mar 2009, 05:30 PM
Has this functionality (to prevent dragging beyoud the browser window and thus extending the browser extent) been implemented?

cheer

Matt
0
Petio Petkov
Telerik team
answered on 23 Mar 2009, 03:16 PM
Hi Matthew,

We implemented the restriction zone functionality only for the RadWindow control. A simple example which illustrates restriction zone is available here:

http://demos.telerik.com/aspnet-ajax/window/examples/restrictionzone/defaultcs.aspx

This release(2009/Q1) we made a lot of changes in the RadDock control which improved its colaboration with Ajax. Till the next release(2009/Q2 - which will be released in the middle of June) we will continue to improve its colaboration with Ajax and we will implement Resize to RadDock while it is docked into a RadDockZone. Also we will do our best to implement a similar to the RadWindow's restriction zone functionality for the 2009/Q2 release.


Kind regards,
Petio Petkov
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Greg
Top achievements
Rank 1
answered on 24 Nov 2009, 08:54 PM
Is there any news on this restriction zone feature for RadDocks?

What I currently have is a grid of RadZones and RadDocks within a scrollable div. However when I drag a dock I can drag it outside of the div. What would be good is if the dock is contained within the scrollable div, and will also scroll that container when dragged to the container boundaries.

If this functionality isn't available at present I'd be grateful for any advice on how to do this manually as a temporary measure.

Many thanks,

0
Pero
Telerik team
answered on 27 Nov 2009, 02:44 PM
Hello Greg,

We decided not to implement this "RestrictionZone" functionality in the RadDock control, because the main purpose of the RadDock control is to be used as a layout control - e.g. create PageLayout for CMS or pages like igoogle, netvibes - and it is very different from the one of the RadWindow.

 In the latest official release we have introduced a new functionality (which I think will help you implement the desired scenario) of the RadWindow - ability to load content (controls) from the current page instead of showing a different page - and you can use the RadWindow control instead.

Kind regards,
Pero
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Dock
Asked by
Daniel
Top achievements
Rank 1
Answers by
Petya
Telerik team
Matthew
Top achievements
Rank 1
Petio Petkov
Telerik team
Greg
Top achievements
Rank 1
Pero
Telerik team
Share this question
or