Kendo ui 第二次窗口打开尝试中出现空白剑道窗口

Kendo ui 第二次窗口打开尝试中出现空白剑道窗口,kendo-ui,telerik,kendo-window,Kendo Ui,Telerik,Kendo Window,剑道窗口仅在第一次尝试时正常打开。关闭窗口后,另一次尝试会导致没有数据的空白窗口 }).success(function (ContractID) { $('#save-contract-edit'). append( '<a role="button" id="print-edit" class="k-button k-button-icontext k-primary export-pdf updateContra

剑道窗口仅在第一次尝试时正常打开。关闭窗口后,另一次尝试会导致没有数据的空白窗口

      }).success(function (ContractID) {
        $('#save-contract-edit').
          append(
            '<a role="button" id="print-edit" class="k-button k-button-icontext k-primary export-pdf updateContract" href="\#"></a>')
        $('#print-edit').kendoButton({
          click: function (e) {
            openWindowEdit($('#contract-edit').data('contract_id_edit'))
          },
        })

  function openWindowEdit (contract_id) {
      $("#dialogEdit").kendoWindow({
        width: '34%',
        minWidth: 100,
        title: 'Umowa',
        actions: [
          'Close'
        ],
        close: onClose,
        visible: false,
        position: {
          top: 100,
          left: '33%'
        },
        content: {
          url: API_URL + contract_id,
          dataType: 'json',
          iframe: false,
          template: $('#tmpPrint').html()
        }
      }
    );

    var windowEdit = $('#dialogEdit').data("kendoWindow");

    windowEdit.refresh({
      dataType: "json",
      url: API_URL + contract_id,
      template: $('#tmpPrint').html()
    });
    windowEdit.open().center()
  }
})。成功(函数(construcd){
$(“#保存合同编辑”)。
附加(
'')
$(“#打印编辑”)。肯多布顿({
点击:功能(e){
openWindowEdit($('#合同编辑')。数据('合同id#编辑'))
},
})
函数openWindowEdit(合同id){
$(“#对话框编辑”).kendoWindow({
宽度:“34%”,
最小宽度:100,
标题:“Umowa”,
行动:[
“结束”
],
关闭:一旦关闭,
可见:假,
职位:{
前100名,
左:“33%”
},
内容:{
url:API\u url+合同\u id,
数据类型:“json”,
iframe:false,
模板:$('#tmpPrint').html()
}
}
);
var windowEdit=$('#dialogEdit')。数据(“kendoWindow”);
windowEdit.refresh({
数据类型:“json”,
url:API\u url+合同\u id,
模板:$('#tmpPrint').html()
});
windowEdit.open().center()
}

…你是在近距离摧毁剑道窗口吗?我应该摧毁它吗?是的,你应该