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

Parent/child windows

3 Answers 291 Views
Window
This is a migrated thread and some comments may be shown as answers.
Bjarke
Top achievements
Rank 1
Bjarke asked on 22 Aug 2012, 06:37 AM
I have a scenario where I want parent and child windows. The fiddle http://jsfiddle.net/tDfSP/3/ mimics the scenario. I.e. I want to open a modal (parent) window. From this window I'll open a new modal (child) window. However, it doesn't work.

Markup from fiddle:
<div id="sub">
    sub vindue
</div>

<div id="dialog">
<input type="button" id="btn" value="Click" />
</div> 

Script from fiddle:
$("#dialog").kendoWindow({
            modaltrue,
            title"Indbakke emne",
            minHeight300,
            width700,
          });
var dialog $("#dialog").data("kendoWindow");
dialog.center();
$("#sub").kendoWindow({
    visiblefalse,
            modaltrue// <-- breaks parents modal state if sub window is modal, in addition the sub window is not properly modal because the parent window is not blocked
            title"Sub",
            minHeight300,
            width70,
          });
$("#btn").click(function({
    $("#sub").data("kendoWindow").center().open();
});

3 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 23 Aug 2012, 08:30 AM
Hello Bjarke,

 
The version of the KendoUI used in the jsFiddle demo is very old. This issue was fixed after the Q3 2011 release. I will suggest you use the latest official release of KendoUI. It 

All the best,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Bjarke
Top achievements
Rank 1
answered on 23 Aug 2012, 08:54 AM
Ok. So I updated the fiddle http://jsfiddle.net/tDfSP/4/ to 2012.1.322. But that doesn't help. And besides I now get a script error. Can you fork/update the fiddle to proove the parent/child window modal functionallity?
0
Accepted
Georgi Krustev
Telerik team
answered on 23 Aug 2012, 09:54 AM
Hello,

 
I forked and updated the jsFiddle demo and everything seams to work as expected. The latest official release is 2012.2.710.

Kind regards,
Georgi Krustev
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
Bjarke
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Bjarke
Top achievements
Rank 1
Share this question
or