Hi,
I have been trying to launch a window from a base page and the launch window content view will have to be from an action.
With the below code block, I'm getting a blank window, please help in this regard.
fyi... I have converted my existing application to KendoUI using the tool menu upgrade wizard.
<div id="divDocsUploadWindow">
@(Html.Kendo().Window()
.Name("DocsUploadWindow")
.Title("Customer")
.Draggable()
.Resizable()
.Width(736)
.Visible(false)
.Modal(true)
)
</div>
the jquery portion:
$("#btnOpenDocs ").click(function () {
var windowWidget = $("#DocsUploadWindow").data("kendoWindow");
windowWidget.refresh({
url: "@Url.Action("UploadViewAction", "UploadController")"
});
windowWidget.center();
windowWidget.open();
});
view:
@model Models.UploadFile
@{
ViewBag.Title = "Upload";
}
<h2>_Upload</h2>
<label>test</label>
@(Html.Kendo().Upload()
.Name("attachments")
.Multiple((bool) ViewData["multiple"])
.Async(async => async
.Save("Save", "Upload")
.Remove("Remove", "Upload")
.AutoUpload((bool) ViewData["autoUpload"])
)
)
Thanks,
Subbu.
I have been trying to launch a window from a base page and the launch window content view will have to be from an action.
With the below code block, I'm getting a blank window, please help in this regard.
fyi... I have converted my existing application to KendoUI using the tool menu upgrade wizard.
<div id="divDocsUploadWindow">
@(Html.Kendo().Window()
.Name("DocsUploadWindow")
.Title("Customer")
.Draggable()
.Resizable()
.Width(736)
.Visible(false)
.Modal(true)
)
</div>
the jquery portion:
$("#btnOpenDocs ").click(function () {
var windowWidget = $("#DocsUploadWindow").data("kendoWindow");
windowWidget.refresh({
url: "@Url.Action("UploadViewAction", "UploadController")"
});
windowWidget.center();
windowWidget.open();
});
view:
@model Models.UploadFile
@{
ViewBag.Title = "Upload";
}
<h2>_Upload</h2>
<label>test</label>
@(Html.Kendo().Upload()
.Name("attachments")
.Multiple((bool) ViewData["multiple"])
.Async(async => async
.Save("Save", "Upload")
.Remove("Remove", "Upload")
.AutoUpload((bool) ViewData["autoUpload"])
)
)
Thanks,
Subbu.