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

Open WIndow within a container

3 Answers 146 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ravi
Top achievements
Rank 1
Ravi asked on 11 Jul 2012, 07:15 AM
Is it possible to open kendo window within a container(workspace,div ...). I need to open multiple windows within a workspace (say a ..div ). The windows should be movable only inside the container and not beyond that. Is there a way of achieving this.

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 11 Jul 2012, 08:53 AM
Hello Ravi,

I am afraid the described behavior is not supported out-of-the-box. Window widgets always reside in the <body> tag, so that they always appear on top of everything else on the page, and also, all Windows should be in the same stacking context in order to overlap correctly in multiple Window scenarios.

Generally, if you want to define some boundaries and force a Window to be draggable only there, you can use the widget's events, check the new coordinates on drag end and move the Window manually if the user drags it to an undesired location.

Kind regards,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Ravi
Top achievements
Rank 1
answered on 17 Jul 2012, 04:58 PM
How to get the new coordinates of the kendo window in dragend event.
0
Dimo
Telerik team
answered on 18 Jul 2012, 07:23 AM
Hi Ravi,

You can use jQuery offset()

Greetings,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Window
Asked by
Ravi
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Ravi
Top achievements
Rank 1
Share this question
or