Completed
Last Updated: 13 Sep 2018 17:39 by ADMIN
Jamie
Created on: 14 Jun 2012 06:53
Category: Window
Type: Feature Request
56
Kendo window restriction to specified area or parent
Windows should be able to be contained or restricted to a specific area.  This can either be using parameters or by containing it to a parent object/DIV.  

Reasons:

Windows can be dragged anywhere on the browser document and when maximized they take up the entire document.  This is a problem if you have an area of the document that you always want to have visible.  In my example, I have a toolbar at the top of the screen 25px high and I would like the windows to never move into that area so that it is always accessible.
10 comments
ADMIN
Carl
Posted on: 13 Sep 2018 17:39
As a quick update here, with R3 2018 we finally introduced the capability to restrict the Window to only be moved around in a specified area. Please refer to this demo for how you can go about implementing this:

https://demos.telerik.com/kendo-ui/window/constrain-movement
ADMIN
Dimitar
Posted on: 15 Jun 2018 12:00
Hello,

This feature implementation is currently added to our backlog. A similar behavior to the one shown in the "Restrict Window Position" HowTo article could be achieved by subscribing to the Window's dragend event and preventing the default behavior when the window position is greater than the desired value. https://dojo.telerik.com/EJuqUqiD 

Imported User
Posted on: 22 Jan 2018 04:55
Is this planned? https://docs.telerik.com/kendo-ui/controls/layout/window/how-to/restrict-windows-position used to work in 2015.1.511. But it doesn't work anymore (2018.1.117) Is there a solution to this problem?
Imported User
Posted on: 18 Dec 2017 20:43
I don't know why this is marked as completed. This is not completed yet. From the `appendTo` docs:

> Note that this does not constrain the window dragging within the given element.
LeBear
Posted on: 16 Mar 2017 21:06
This release is out.  I don't see a reference in the online documentation.  What's the status?
Imported User
Posted on: 07 Oct 2016 13:25
Thank you.
Imported User
Posted on: 01 Jul 2016 10:14
Or at least add options for minTop and minLeft.
Matjaz
Posted on: 04 Sep 2014 12:13
It would be really a nice feature to add restriction area like the RadWindow has it:
http://demos.telerik.com/aspnet-ajax/window/examples/restrictionzone/defaultcs.aspx
Imported User
Posted on: 23 Oct 2013 14:10
The appendTo works fine for adding the window element to a specific container but doing so doesn't actually restrict the movement of the window to that container - unless I'm missing another option somewhere.

Handling the drag events and restricting it yourself will do the job but logically I'd expect the window to always be contained to the bounds of its parent if one is specified.  If I want it to have free reign over the whole page then I let it do the default and append to the body.
Corey
Posted on: 08 Jan 2013 19:39
This is something that can be done with the Telerik RadWindow and is a requirement for a UI I am working on right now. Having this feature would be a major upgrade to the Kendo UI Window.