Window refresh loading animation

3 posts, 1 answers
  1. Mark
    Mark avatar
    94 posts
    Member since:
    Jul 2014

    Posted 18 Sep 2015 Link to this post

    Hi there,

     I have a number of Kendo Windows on my site.  In each case, when the content is first loaded from an MVC partial view, it shows a white screen until loaded.  And if then reloading the content of the window, it displays the existing content (from previous load) until the window is loaded.

    How can I make it display a loading animation whilst loading for each of these cases.  Here is my code :-

     === WINDOW ====
        .Title("Sample Documents")
        .Content("loading sample documents...")
        .Events(e => e

    === JS REFRESH ===
    contentURLString = '@Url.Action("GetSampleDocuments", "Site")?SampleID=' + SampleID
    var win = $("#window").data("kendoWindow");
        url: contentURLString


    Thanks, Mark

  2. Answer
    Rosen avatar
    3253 posts

    Posted 22 Sep 2015 Link to this post

    Hello Mark,

    There is no built-in loading animation for the window widget. However, you can achieve similar functionality yourself by using the kendo.ui.progress. You will need to manually show the loading when refreshing the content and use the refresh event to hide it. Similar to the following:


        .Events(events => events.Refresh("refresh"))
    <button id="refresh" onclick="refresh_content(); return false;">Refresh content</button>
        function refresh() {
            kendo.ui.progress($("#window"), false);
        function refresh_content() {
            kendo.ui.progress($("#window"), true);
                 //TODO: refresh the content of the window 


    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Mark
    Mark avatar
    94 posts
    Member since:
    Jul 2014

    Posted 22 Sep 2015 in reply to Rosen Link to this post

    Worked perfectly, thanks!


Back to Top