Windows not working

3 posts, 0 answers
  1. Alan Mosley
    Alan Mosley avatar
    200 posts
    Member since:
    Apr 2010

    Posted 24 Jun 2015 Link to this post

    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

        Layout = Nothing
    End Code
    <link href="~/content/kendo/kendo.common.min.css" rel="stylesheet" />
    <link href="~/content/kendo/" 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/" 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>
        Dim AlertWindow As Kendo.Mvc.UI.Window = Html.Kendo.Window().Name("AlertWindow").
               Visible(False).Actions(Function(actions) actions.Pin().
    End Code
        function alertWindow(message) {
            var win = $("#AlertWindow").data("kendoWindow");
              "<div class=\"alert alert-warning\">" + message + "</div>"
                top: 100,

  2. Dimo
    Dimo avatar
    8404 posts

    Posted 26 Jun 2015 Link to this post

    Hi Alan,

    You are trying to get the Window widget reference too early. Wrap the Javascript code in a document.ready handler, as explained in the documentation.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Alan Mosley
    Alan Mosley avatar
    200 posts
    Member since:
    Apr 2010

    Posted 26 Jun 2015 in reply to Dimo Link to this post

    Thanks, that example was made in a hurry, and I forgot to put in document ready, but that was not my problem on the site. My problem was a messed up bundling of scripts. I should have cancelled this post, thanks
Back to Top