Prevent dragging dock waaaay off the screen width?

2 posts, 1 answers
  1. Sean
    Sean avatar
    200 posts
    Member since:
    Nov 2010

    Posted 18 Jul 2011 Link to this post


    This occurs in your guys' demo, as well as in my application. In the demo it seems to be slightly more broken, but nevertheless:

    If you grab one of those dock's by its title bar and pull it to the RHS of your monitor -- the dock starts pulling the page wider and wider. I would like to restrict dragging to the browser's view port.

    How would I go about doing this?


  2. Answer
    Pero avatar
    1156 posts

    Posted 20 Jul 2011 Link to this post

    Hi Sean,

    To do this you should get a reference to the RadDock's resize extender object, and disable the automatic scrolling of the browser's viewport. This is done on the client:
    var dock = $find("RadDock1");
    var rExtender = dock._resizeExtender;
    rExtender._autoScrollEnabled = false;

    Best wishes,
    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