我使用 Kendo Window 来创建新记录并在此窗口中呈现局部视图。虽然我可以将表单数据发布到Controller,但出现错误时无法返回表单,需要返回剑道窗口。任何帮助,将不胜感激。
看法:
// I call this method on ButtonClick
function openWindow(win) {
var window = $(win).data("kendoWindow");
window.refresh();
window.center();
window.open();
};
@(Html.Kendo().Window()
.Name("winCreate")
.Title("Create")
.Visible(false)
.Draggable(true)
.LoadContentFrom("_Create", "Issue")
.Modal(true)
.Actions(actions => actions
.Close()
)
)
控制器:
//I tried to recall Kendo Window as below, but it cannot be rendered:
return PartialView("_Create", "Issue", issueViewModel);