{command: { text:
"Devices", click: ShowDevicePage }, title: " ", width: "120px" },
function ShowDevicePage(e) {
e.preventDefault();
var dataItem = this.dataItem($(e.currentTarget).closest("tr"));
var url = "AssignDevice.aspx?DRC=" + dataItem.id;
$(document.body).append('<div id="myDynamicWindow"></div>');
var wnd = $("#myDynamicWindow").data("kendoWindow");
wnd = $("#myDynamicWindow").kendoWindow({
title: "Devices",
content: url,
width: "950",
height: "450",
visible: false,
modal: true,
close: function () {
//Refresh the Grid
var childGrid = $(e.delegateTarget).closest(".k-grid").kendoGrid().data("kendoGrid");
childGrid.dataSource.read();
$(e.delegateTarget).closest(".k-grid").kendoGrid().data("kendoGrid").refresh();
}
}).data("kendoWindow");
wnd.center();
wnd.open();
} //ShowDevicePage
On close of the modal Window I need to reload the Grid which is in the calling page. How do i do that?