I have the following:
However, when this window is activated using this code, it fails on the call to center(), because batchWindow doesn't contain a reference.
If I modify the content field to be a full URL, things work as expected. How can I use a relative URL here?
$("#newBatchWindow").kendoWindow({
width: "425px",
height: "375px",
title: "New Batch",
visible: false,
resizable: false,
modal: true,
content: "/Batch/Create"
});
However, when this window is activated using this code, it fails on the call to center(), because batchWindow doesn't contain a reference.
var batchWindow = $('#newBatchWindow').data('kendoWindow');
batchWindow.center();
batchWindow.open();
If I modify the content field to be a full URL, things work as expected. How can I use a relative URL here?