【发布时间】:2014-01-27 07:25:08
【问题描述】:
我有这个窗口:
@(Html.Kendo().Window()
.Name("errorWindow")
.Title("")
.Content(@<text>
//Put text here
</text>)
.Draggable() //Enable dragging of the window
.Resizable() //Enable resizing of the window
.Modal(true)
.Visible(false)
)
在客户端转换成这个:
jQuery(function(){jQuery("#errorWindow").kendoWindow({"modal":true,"iframe":false,"draggable":true,"pinned":false,"title":"","resizable":true,"content":null,"actions":["Close"]});});
我可以用这个 JScript 调用:
function onAjaxFailure(data) {
var window = $("#errorWindow").data("kendoWindow");
window.center().open();
}
但是如何将文本放在窗口中?换句话说,“data”参数将是要在错误窗口中显示的文本。
【问题讨论】:
标签: javascript jquery asp.net-mvc kendo-ui kendo-window