telerik mvc window: change the url of window when iframe is set to true
My goal is to have a set of windows for a page and for the content to not be loaded until the first time the window is opened.
Each window has a maximize, minimize, and refresh button.
Here is the script to load a window.
var w = $(id).data('kendoWindow');
var url = $(id).data('url');
var loaded = $(id).data('load');
if (loaded == null) {
w.refresh({
url: url
});
w.setOptions({
contentUrl: url,
});
$(id).data('load', 'false');
}
However, with this approach, the "refresh" button on the window seems to have no effect after the content loads.
How can I maintain the URL so the window'scontent can be loaded programmatically and the refresh button reload the content?