I am declaring a window like this...
in my html
<div id='mywin'></div>
in my js file...
var window = $('#mywin');
if (!window.data("kendoWindow")) {
window.kendoWindow({
width: winWidth + "px",
height: winHeight + "px",
minWidth: winWidth + "px",
minHeight: winHeight + "px",
title: "Place of Interest Search",
actions: ["Close"],
resizable: false
});
}
//open identify window
window.data("kendoWindow").center();
window.data("kendoWindow").open();
this all works but when i attempt to reload content by...
if ($("#mywin").data("kendoWindow")) {
..reload logic here
this ("#mywin").data("kendoWindow") always returns false thus recreating the window every time.
I notice in the dom there is the original div and then a duplicate div for the window at the bottom of the dom with the same id (mywin)
what am i doing wrong here? I want to reuse the original window without having to destroy it and recreate it.
in my html
<div id='mywin'></div>
in my js file...
var window = $('#mywin');
if (!window.data("kendoWindow")) {
window.kendoWindow({
width: winWidth + "px",
height: winHeight + "px",
minWidth: winWidth + "px",
minHeight: winHeight + "px",
title: "Place of Interest Search",
actions: ["Close"],
resizable: false
});
}
//open identify window
window.data("kendoWindow").center();
window.data("kendoWindow").open();
this all works but when i attempt to reload content by...
if ($("#mywin").data("kendoWindow")) {
..reload logic here
this ("#mywin").data("kendoWindow") always returns false thus recreating the window every time.
I notice in the dom there is the original div and then a duplicate div for the window at the bottom of the dom with the same id (mywin)
what am i doing wrong here? I want to reuse the original window without having to destroy it and recreate it.