我在视图中有这段代码
@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窗口中。有人可以帮我吗?谢谢。