I use Kendo Window for creating new records and render a partialview in this window. Although I can post the form data to the Controller, I cannot return the form when there is an error and need to return to the Kendo Window. Any help would be appreciated.
View:
// 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()
)
)
Controller:
//I tried to recall Kendo Window as below, but it cannot be rendered:
return PartialView("_Create", "Issue", issueViewModel);