I have a kendo Window with an order entry screen at the time of page load. At the bottom , i have a dock menu. On the click of the dock menu the same window comes to the front, but a new instance is not created. the code is as below.
window at page load:
<div id="window" style="width: 1200px;">
<span class="Orders">
<div id="Workspace">
<div id="tabstrip" style="width: 1200px; height: 260px;">
<ul>
<li class="k-state-active">Equity </li>
<li>Futures </li>
<li>Options </li>
<li>CFD </li>
<li>Forex </li>
</ul>
<div>
<span class="Equity">
</span>
</div>
</div>
</div>
</span>
</div>
the new instance of this window should open up on a click of button which is as below
function OpenOrderEntry() {
var window = $("#window")
if (!window.data("kendoWindow")) {
// window not yet initialized
window.kendoWindow({
width: "1300px",
height: "280px",
modal: false,
resizable: true,
actions: ["Minimize", "Maximize", "Close"],
title: "OrderEntry"
});
} else {
// reopening window
window.data("kendoWindow")
.open(); // open the window
}
}
i need some help as i need multiple instances of the same window.
window at page load:
<div id="window" style="width: 1200px;">
<span class="Orders">
<div id="Workspace">
<div id="tabstrip" style="width: 1200px; height: 260px;">
<ul>
<li class="k-state-active">Equity </li>
<li>Futures </li>
<li>Options </li>
<li>CFD </li>
<li>Forex </li>
</ul>
<div>
<span class="Equity">
</span>
</div>
</div>
</div>
</span>
</div>
the new instance of this window should open up on a click of button which is as below
function OpenOrderEntry() {
var window = $("#window")
if (!window.data("kendoWindow")) {
// window not yet initialized
window.kendoWindow({
width: "1300px",
height: "280px",
modal: false,
resizable: true,
actions: ["Minimize", "Maximize", "Close"],
title: "OrderEntry"
});
} else {
// reopening window
window.data("kendoWindow")
.open(); // open the window
}
}
i need some help as i need multiple instances of the same window.