Loading Icon In New RadWindow

1 posts, 0 answers
  1. Randy
    Randy avatar
    3 posts
    Member since:
    Feb 2016

    Posted 17 May 2018 Link to this post

    I am trying to get a dynamic RadWindow to display the loading icon. When I create the window declaratively or even programatically and add it to the RadWindowManager, the loading icon displays. But when I have instances where I am launching windows using the code below, the window displays with content (eventually), but while the content loads, I get a blank white screen. Is there a way to have the RadWindow display the loading icon if the window doesn't exist until it is launched?

    01.function OpenDynamicWindow(title, url, width, height, closeArgument) {
    02.    var win = radopen(url, null, width, height, 0, 0);
    03.    win.set_title(title);
    04.    win.set_iconUrl(window.location.origin + '/cws/images/cws_icon.ico');
    05.    win.set_behaviors(Telerik.Web.UI.WindowBehaviors.Reload + Telerik.Web.UI.WindowBehaviors.Maximize + Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Resize + Telerik.Web.UI.WindowBehaviors.Close);
    06.    win.set_showContentDuringLoad(false);
    07.    win.set_reloadOnShow(true);
    08.    win.argument = closeArgument;
    09.    win.add_close(CloseDynamicWindow);
    12.function CloseDynamicWindow(sender, eventArgs) {
    13.    $find('<%= ramPopWindow.ClientID%>').ajaxRequest(sender.argument);
Back to Top