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

contain window inside of parent element

1 Answer 79 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 16 Apr 2014, 10:18 PM
Does anyone know how to contain a window widget within a certain div/element tag?

Right now I have been trying to use $("#windowTest").draggable({ containment: $("#windowTest").parent() });, but I am having no luck with this.  I would have to assume there is some way to contain a window, especially since it is built into jquery already and when you create a window it gives it a data-role of "draggable" (the correct jquery type).

I have not included any code since all I need to accomplish is keeping windowTest inside containmentDiv. 

<div id="containmentDiv">
<div id="windowTest"></div>
</div>

Thanks for any help!

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 18 Apr 2014, 12:13 PM
Hello Mark,

Such restricting functionality is currently not supported. Same question is already discussed (there is a work-around suggestion) in the following thread:

http://www.telerik.com/forums/window-restriction

Kind Regards,
Petur Subev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
General Discussions
Asked by
Mark
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or