提交后无法重新加载弹出窗口

时间:2015-06-15 20:19:18

标签: javascript asp.net-mvc kendo-ui kendo-asp.net-mvc kendo-window

我使用Kendo Window创建新记录并在此窗口中渲染部分视图。虽然我可以将表单数据发布到Controller,但是当出现错误并且需要返回到Kendo Window时,我无法返回表单。任何帮助,将不胜感激。

查看:

// 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);

0 个答案:

没有答案