【发布时间】:2014-04-22 00:17:09
【问题描述】:
我的视图中有这段代码
@model IEnumerable<mvcAmerica.Models.Art>
@(Html.Kendo().Window()
.Name("window")
.Title("Agregar Detalle")
.Draggable()
.Visible(false)
.Actions(actions => actions.Close())
.Events(ev => ev.Close("onClose"))
.Width(600)
.Height(600)
.Content(() =>
{
@Html.RenderPartial("_ArtViewCreate");
})
)
<span id="undo" class="k-button">Click here to open the window.</span>
<script>
function onClose() {
$("#undo").show();
}
$(document).ready(function() {
$("#undo").bind("click", function() {
$("#window").data("kendoWindow").open();
$("#undo").hide();
});
});
</script>
但结果出乎意料,部分视图呈现在我的主页中,而不是在 Kendo UI 窗口中
有人帮帮我吗?
谢谢
【问题讨论】: