var grid = $("#grid").data("kendoGrid");
var selectedItem = grid.dataItem(grid.select());
if (selectedItem != null && selectedItem != "" && selectedItem != undefined)
{
var wOptions =
{
content: "/xx/XxController/Index/" + selectedItem.Id//
If you have the parameter,
iframe: true,
modal: true,
width: "50%",
height: "90%",
close: function () {
this.destroy();
$('body').addClass('non-overflow');
},
open: function () {
this.center();
}
};
var windowParent = windowParent == undefined ? "list-splitter" : windowParent;
$("#" + windowParent).append("<div id='printWindow'> </div>")
$("#printWindow").kendoWindow(wOptions);
}
Следующий блок кода также вызывает метод окна js
window: function (url, params, windowParent) {
var wOptions = {
content: url + "/?frameFilter=" + params,
iframe: true,
modal: true,
width: "90%",
height: "90%",
close: function () {
this.destroy();
$('body').addClass('non-overflow');
},
open: function () {
this.center();
}
};
windowParent = windowParent == undefined ? "pop-splitter" : windowParent;
$("#" + windowParent).append("<div id='popupWindow'> </div>")
$("#popupWindow").kendoWindow(wOptions);
},
Надеюсь, это поможет