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

    Hi,

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

    http://demos.telerik.com/aspnet-ajax/dock/examples/autopostback/defaultcs.aspx

    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?

    Thanks

    Sean
  2. Answer
    Pero
    Admin
    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,
    Pero
    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!

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top