Hide URL in status bar of RadWindow

13 posts, 0 answers
  1. Nawnit
    Nawnit avatar
    12 posts
    Member since:
    Dec 2007

    Posted 11 Jan 2010 Link to this post

    Hi ,

    I am using RadWindow to open the redirected page . But I'm experiencing the problem, Page URL is showing in the status bar of RadWindow.
    Is it possible to hide the URL in the status bar but keep the animated 'Loading' image when the window first opens?

    See attached screen shot..

    Thanks,
    Nawnit
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 11 Jan 2010 Link to this post

    Hello Nawnit,

    You can set the text displayed in the statusbar to your custom text (including an empty string) by using the set_status method which is listed below:

    http://www.telerik.com/help/aspnet-ajax/window_programmingradwindowmethods.html

    Sincerely yours,
    Svetlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Nawnit
    Nawnit avatar
    12 posts
    Member since:
    Dec 2007

    Posted 12 Jan 2010 Link to this post

    Hi Svetlina,

    I have used 'set_status=" "' in javascript function but still URL in status bar of RadWindow.

    I'm using 'set_status' as given below ,

                
                var oWindow = window.radopen('NewPage.aspx?pId=<%=Request.QueryString["pageId"] %>', null);
                oWindow.SetSize(800, 500);
                oWindow.SetTitle("New Page");
               
               oWindow.set_status=" ";
              
               oWindow.set_behaviors(4); //Close:4
                oWindow.SetModal(true);
                oWindow.Center;

    Thanks ,
    Nawnit

  5. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 14 Jan 2010 Link to this post

    Hi Nawnit,

    Thank you for the provided code, I examined it and I was able to reproduce the problem. Please, examine the following notes which I prepared for you based on your code:

    1) set_status is a method and not a property and thus you should call it as shown below:

    oWindow.set_status("");

    2) Center is also a method and you should call it as follows:

    oWindow.Center();

    3) Since you are opening the RadWindow dynamically it takes its status automatically and thus you should ensure that your status is set after the automatic one. In order to do so I suggest to set it in the OnClientPageLoad event with a small timeout (actually a timeout of 0 will also do the trick):

    function OnClientPageLoad(sender, args)
    {
        setTimeout(function(){
           sender.set_status("");},0);
    }

    For your convenience I pasted my test demo based on your code with the applied changes:

    <%@ Page Language="C#" %>
      
    <%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <asp:ScriptManager ID="mng" runat="server">
            </asp:ScriptManager>
      
            <script type="text/javascript">
           
         function OpenWnd()
         {
                var oWindow = window.radopen('NewPage.aspx?pId=SomePageIDGoesHere', null);
                oWindow.SetSize(800, 500);
                oWindow.SetTitle("New Page"); 
                oWindow.set_behaviors(4); //Close:4
                oWindow.SetModal(true);
                oWindow.Center();
                
    }
           
         function OnClientPageLoad(sender, args)
         {
             setTimeout(function(){
                sender.set_status("");},0);
         }
           
            </script>
      
            <telerik:RadWindowManager ID="mng1" runat="server" OnClientPageLoad="OnClientPageLoad">
            </telerik:RadWindowManager>
            <asp:Button ID="btn" runat="server" Text="Open RadWindow" OnClientClick="OpenWnd();return false;" />
        </form>
    </body>
    </html>

    I hope that my reply is helpful, let me know how it goes.

    All the best,
    Svetlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. praveen kumar
    praveen kumar avatar
    1 posts
    Member since:
    May 2010

    Posted 19 May 2010 Link to this post

    Thank you Very much


    Thanks & Regards
    Praveen Kumar. P
  7. Bryan Brannon
    Bryan Brannon avatar
    65 posts
    Member since:
    Aug 2012

    Posted 04 May 2012 Link to this post

    Can we set_status within the window itself?

    I have tried the following without luck: 

    function GetRadWindow() {
        var oWindow = null;
        if (window.radWindow) oWindow = window.radWindow;
        else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
        return oWindow;
    }


    $(document).ready(function () {
        // ready
        var oWindow = GetRadWindow();
        oWindow.set_status("hello world;")
    });
  8. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 08 May 2012 Link to this post

    Hello Bryan,

    By default the statusbar of the RadWindow shows the URL of the page that is loaded inside. This is updated after the page is loaded, so it happens after the document.ready event is fired inside. You can make a simple modification to  your page to make sure you code is called later so that it is in effect:
    $(document).ready(function ()
            {
                // ready
                var oWindow = GetRadWindow();
                setTimeout(function ()
                {
                    oWindow.set_status("hello world;")
                }, 0);
            });



    All the best,
    Marin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  9. Varun
    Varun avatar
    13 posts
    Member since:
    Sep 2013

    Posted 25 Oct 2013 Link to this post

    Can anybody pls help me for Rad window status bar Problem...
    I have use VisibleStatusbar property to false  also I have use set status("")........
    Still I am not able to hide the status bar .....

     

    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Office2010Black">

     

    <Windows>

     

    <telerik:RadWindow ID="ListDialog" runat="server" Title="Details" Modal="true"

     

    BackColor="White" VisibleStatusbar="false" Left="10" Top="10">

     

    </telerik:RadWindow>

     

    </Windows>

     

    </telerik:RadWindowManager>

  10. Varun
    Varun avatar
    13 posts
    Member since:
    Sep 2013

    Posted 25 Oct 2013 Link to this post

    I am trying to use Nested rad window...
    I want to hide the status bar of nested rad window....
    Can anyone having solution on this .....
  11. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 28 Oct 2013 Link to this post

    Hi Varun,

    Please have a look into the complete code I tried to hide the status bar of the nested RadWindow.

    ASPX:
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" VisibleStatusbar="false">
        <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server" VisibleOnPageLoad="true">
                <ContentTemplate>
                    <telerik:RadButton ID="RadButton1" runat="server" AutoPostBack="false" Text="ShowRadWindow2"
                        OnClientClicked="showwindow">
                    </telerik:RadButton>
                </ContentTemplate>
            </telerik:RadWindow>
            <telerik:RadWindow ID="RadWindow2" runat="server" VisibleOnPageLoad="false">
                <ContentTemplate>
                    <asp:Label ID="Label2" runat="server" Text="RadWindow2"></asp:Label>
                </ContentTemplate>
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>

    JavaScript:
    <script type="text/javascript">
        function showwindow() {
            var oWnd = $find("<%=RadWindow2.ClientID%>");
            oWnd.show();
        }
    </script>

    Let me know if it doesn't help.
    Thanks,
    Princy.
  12. Varun
    Varun avatar
    13 posts
    Member since:
    Sep 2013

    Posted 28 Oct 2013 Link to this post

    Hi Thanks 4 ur reply .... I m using below function ....
    Still I m not able to hide d same.....

    function ShowDetails(sender, eventArgs)
    {
    var oBrowserWnd = GetRadWindow().BrowserWindow;
    var oHeight = $(window).height();
    var oWidth = $(window).width();
    var sQueryString = "A.aspx";
    var oWnd2 = oBrowserWnd.radopen(sQueryString, "ABC");
    oWnd2.SetSize(oWidth, oHeight);
    oWnd2.SetModal(true);
    return false;
    }
    //--------------------------------------------
    function GetRadWindow()
    {
    var oWindow = null; if (window.radWindow)
    oWindow = window.radWindow; else if (window.frameElement.radWindow)
    oWindow = window.frameElement.radWindow; return oWindow;
    }

  13. Varun
    Varun avatar
    13 posts
    Member since:
    Sep 2013

    Posted 28 Oct 2013 Link to this post

     

    <asp:LinkButton ID="Lnk" Text="TEST" OnClientClick="Javascript:return ShowDetails();"

     

    runat="server"></asp:LinkButton>

  14. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 29 Oct 2013 Link to this post

    Hi Varun,

    Unfortunately I couldn't replicate the issue at my end. There is no known issue with VisibleStatusBar Property. Please have a look into this forum thread which deals the same scenario.

    Thanks,
    Princy.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017