<input id="cmb21a" /><input id="cmb21b" /><script> $("#cmb21a").kendoComboBox({ dataTextField: "name", dataTextValue: "parentID", dataSource: { data: [ { parentID: 1, name: "P1" }, { parentID: 2, name: "P2" }, { parentID: 3, name: "P3" } ] } }); $("#cmb21b").kendoComboBox({ cascadeFrom: "cmb21a", dataTextField: "name", dataTextValue: "id", dataSource: { data: [ { parentID: 1, id: 11, name: "P1a"}, { parentID: 1, id: 12, name: "P1b" }, { parentID: 1, id: 13, name: "P1c" }, { parentID: 2, id: 21, name: "P2a" }, { parentID: 2, id: 22, name: "P2b" }, { parentID: 2, id: 23, name: "P2c" }, { parentID: 3, id: 31, name: "P3a" }, { parentID: 3, id: 32, name: "P3b" } ] } });{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?