How to prevent a RadDock being dragged out of a div

6 posts, 0 answers
  1. Daniel
    Daniel avatar
    44 posts
    Member since:
    Nov 2007

    Posted 14 Dec 2007 Link to this post

    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.
  2. Petya
    Admin
    Petya avatar
    869 posts

    Posted 15 Dec 2007 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Matthew
    Matthew avatar
    18 posts
    Member since:
    Mar 2009

    Posted 20 Mar 2009 Link to this post

    Has this functionality (to prevent dragging beyoud the browser window and thus extending the browser extent) been implemented?

    cheer

    Matt
  5. Petio Petkov
    Admin
    Petio Petkov avatar
    825 posts

    Posted 23 Mar 2009 Link to this post

    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.
  6. Greg
    Greg avatar
    56 posts
    Member since:
    Mar 2009

    Posted 24 Nov 2009 Link to this post

    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,

  7. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 27 Nov 2009 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017