我有一个页面,我正在使用 Telerik 窗口使用 ajaxRequest 打开页面。它工作得很好。但是,下次当我按下该按钮时,它什么也没做。下面是代码片段: var url = "/workbench/createscenario?opportunityid=" + chanceid + "&customerid=" + customerid var window = $("#wndNewScenario").data("tWindow"); window.ajaxRequest(url); 窗口中心();窗口.打开();
我什至尝试使用完整的客户端脚本,如下所示:
var url = "/workbench/createscenario?opportunityid=" + opportunityid + "&customerid=" + customerid;
var windowElement = $.telerik.window.create({
title: "Form",
html: '',
contentUrl: url,
modal: true,
resizable: true,
draggable: true,
onClose: function (e) {
alert("destroying");
e.preventDefault();
windowElement.destroy();
},
onRefresh: function (e) {
windowElement.center();
}
}).data('tWindow');
windowElement.center().open();
任何帮助将不胜感激......我真的不想尝试另一个弹出窗口