I have a kendo grid with a custom toolbar template that has a button to open a kendo window.
This is the code I use to open my window when the above mentioned button is clicked:
Right below the grid I have my Window:
My controller for the Popup window:
I can't seem to validate the form. I always get back that the form is valid even if all the fields are left blank.
This is the code I use to open my window when the above mentioned button is clicked:
var openAssetEditor = function (e) { var window = $('#AssetEditorPopUp').data("kendoWindow"); window.wrapper.css({ height: 450 }); window.refresh({ url: "/Asset/AssetPopup", data: { assetId: 0 } }); window.center(); window.open(); };Right below the grid I have my Window:
@(Html.Kendo().Window() .Name("AssetEditorPopUp") .Title("Asset Editor") .Content("loading asset info...") .Draggable(true) .Modal(true) .Visible(false) .Width(950) )My controller for the Popup window:
public ActionResult AssetPopup([DataSourceRequest] DataSourceRequest request, int? assetId) { return PartialView("~/Views/Asset/AssetPopup.cshtml"); }I can't seem to validate the form. I always get back that the form is valid even if all the fields are left blank.