This question is locked. New answers and comments are not allowed.
I have the following code to create a modal window:
function openCalculator() { var acts = new Array(); acts[0] = "Refresh"; acts[1] = "Close"; var windowCalculator = $.telerik.window.create({ title: "Rate Calculator", html: '', contentUrl: "/RulesEngine/RateCalculator/", modal: true, resizable: true, height: 350, width: 800, draggable: true, actions: acts, visible: false, onClose: function (e) { e.preventDefault(); windowCalculator.destroy(); } }) .data('tWindow').center().open();}If the user closes the modal window and tries to re open it, the program throws the following exception:
Unable to get value of the property 'window': object is null or undefined
In addition. The function only loads its content from the contentURL page the first time. it does not refresh the content every time the function is called, which is the behavior that we would expect. Can you help me, please?