Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Windows not working

$
0
0

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
 
<linkhref="~/content/kendo/kendo.common.min.css"rel="stylesheet"/>
<linkhref="~/content/kendo/kendo.mobile.all.min.css"rel="stylesheet"/>
<linkhref="~/content/kendo/kendo.dataviz.min.css"rel="stylesheet"/>
<linkhref="~/content/kendo/kendo.default.min.css"rel="stylesheet"/>
<linkhref="~/Content/kendo/kendo.dataviz.default.min.css"rel="stylesheet"/>
<linkhref="~/content/kendo/kendo.metro.min.css"rel="stylesheet"/>
<linkhref="~/content/kendo/kendo.default.mobile.min.css"rel="stylesheet"/>
<scriptsrc="~/Scripts/jquery-2.1.4.js"></script>
<scriptsrc="~/Scripts/Kendo/kendo.all.min.js"></script>
 
<scriptsrc="~/scripts/kendo/jszip.min.js"></script>
    <scriptsrc="~/scripts/kendo/kendo.all.min.js"></script>
        <scriptsrc="~/scripts/kendo/kendo.aspnetmvc.min.js"></script>
        <scriptsrc="~/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(
          "<divclass=\"alert alert-warning\">" + message + "</div>"
        );
 
        win.center().toFront().open().restore();
        $("#AlertWindow").closest(".k-widget").css({
            top: 100,
 
        });
    }
 
</script>

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>