This is a migrated thread and some comments may be shown as answers.

Hide URL in status bar of RadWindow

12 Answers 1049 Views
Window
This is a migrated thread and some comments may be shown as answers.
Nawnit
Top achievements
Rank 1
Nawnit asked on 11 Jan 2010, 11:13 AM
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

12 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 11 Jan 2010, 12:06 PM
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.
0
Nawnit
Top achievements
Rank 1
answered on 12 Jan 2010, 06:32 AM
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

0
Svetlina Anati
Telerik team
answered on 14 Jan 2010, 03:19 PM
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.
0
praveen kumar
Top achievements
Rank 1
answered on 19 May 2010, 06:59 AM
Thank you Very much


Thanks & Regards
Praveen Kumar. P
0
Bryan Brannon
Top achievements
Rank 2
answered on 04 May 2012, 05:29 PM
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;")
});
0
Marin Bratanov
Telerik team
answered on 08 May 2012, 01:31 PM
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.
0
Varun
Top achievements
Rank 1
answered on 25 Oct 2013, 09:23 AM

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>

0
Varun
Top achievements
Rank 1
answered on 25 Oct 2013, 11:50 AM
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 .....
0
Princy
Top achievements
Rank 2
answered on 28 Oct 2013, 05:57 AM
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.
0
Varun
Top achievements
Rank 1
answered on 28 Oct 2013, 10:31 AM
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;
}

0
Varun
Top achievements
Rank 1
answered on 28 Oct 2013, 10:34 AM

 

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

 

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

0
Princy
Top achievements
Rank 2
answered on 29 Oct 2013, 05:58 AM
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.
Tags
Window
Asked by
Nawnit
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Nawnit
Top achievements
Rank 1
praveen kumar
Top achievements
Rank 1
Bryan Brannon
Top achievements
Rank 2
Marin Bratanov
Telerik team
Varun
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or