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

Prevent dragging dock waaaay off the screen width?

1 Answer 65 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 2
Sean asked on 18 Jul 2011, 08:51 PM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Pero
Telerik team
answered on 20 Jul 2011, 12:47 PM
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!

Tags
Dock
Asked by
Sean
Top achievements
Rank 2
Answers by
Pero
Telerik team
Share this question
or