I am not sure when this window stopped working, it was working before. I have made a test and get an undefined error.
We have published a new version of site and this error is live, any ideas I am under pressure to fix this, thanks
Example is on VB
@code
Layout = Nothing
End Code
<
link
href
=
"~/content/kendo/kendo.common.min.css"
rel
=
"stylesheet"
/>
<
link
href
=
"~/content/kendo/kendo.mobile.all.min.css"
rel
=
"stylesheet"
/>
<
link
href
=
"~/content/kendo/kendo.dataviz.min.css"
rel
=
"stylesheet"
/>
<
link
href
=
"~/content/kendo/kendo.default.min.css"
rel
=
"stylesheet"
/>
<
link
href
=
"~/Content/kendo/kendo.dataviz.default.min.css"
rel
=
"stylesheet"
/>
<
link
href
=
"~/content/kendo/kendo.metro.min.css"
rel
=
"stylesheet"
/>
<
link
href
=
"~/content/kendo/kendo.default.mobile.min.css"
rel
=
"stylesheet"
/>
<
script
src
=
"~/Scripts/jquery-2.1.4.js"
></
script
>
<
script
src
=
"~/Scripts/Kendo/kendo.all.min.js"
></
script
>
<
script
src
=
"~/scripts/kendo/jszip.min.js"
></
script
>
<
script
src
=
"~/scripts/kendo/kendo.all.min.js"
></
script
>
<
script
src
=
"~/scripts/kendo/kendo.aspnetmvc.min.js"
></
script
>
<
script
src
=
"~/scripts/kendo/kendo.modernizr.custom.js"
></
script
>
@code
Dim AlertWindow As Kendo.Mvc.UI.Window = Html.Kendo.Window().Name("AlertWindow").
Visible(False).Actions(Function(actions) actions.Pin().
Refresh().
Maximize().
Close()).
Width(400).
Title("Warning").
Pinned(True)
AlertWindow.Render()
End Code
<
script
>
alertWindow("ffffff")
function alertWindow(message) {
var win = $("#AlertWindow").data("kendoWindow");
alert(win)
win.content(
"<
div
class=\"alert alert-warning\">" + message + "</
div
>"
);
win.center().toFront().open().restore();
$("#AlertWindow").closest(".k-widget").css({
top: 100,
});
}
</
script
>