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

disable URL at bottom of window

14 Answers 348 Views
Window
This is a migrated thread and some comments may be shown as answers.
david
Top achievements
Rank 1
david asked on 18 Mar 2008, 12:33 AM
Love the RadWindow,

I just cant't find the property to control (actually turnoff) the display of the URL at the bottom of the window?

thanks

david

14 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 18 Mar 2008, 07:20 AM
Hello David,

You can either hide the entire statusbar by setting the VisibleStatusbar property to false, or as an alternative, you can use the client-side set_Status() method to change the status to a custom string.




Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Paul
Top achievements
Rank 1
answered on 07 Jun 2008, 01:17 AM
Is there a way to disable the status bar in javascript after the page is loaded.

Ie on page load so the user get the progresss bar then the status bar hides ?

thanks
0
kgg
Top achievements
Rank 1
answered on 08 Jun 2008, 05:48 PM
I have somewhat the same problem here.I need to hide the URL from the statusbar, but I like the loading progress animation. set_status doesn't seem to work, unless I'm doing something wrong.

I'm using this code:

<telerik:RadWindowManager ID="RadWindowManager1" Width="500px" Height="400px" ShowContentDuringLoad="false" 
      Behaviors="Close,Resize" 
      runat="server" Animation="Slide"


var oWnd = radopen("/UserControls/admin/UserView.aspx?UserName=" + UserName, "RadWindow1" ); 
oWnd.set_title(Navn); 
oWnd.set_status(" "); 


This does set the statusbar to " " when the window is shown, before the window is completely loaded, but when the window is loaded the URL is shown again.

i can obviously use VisibleStatusbar="false", but as mentioned I like the load progress..

Thanks,

Kjell
0
Georgi Tunev
Telerik team
answered on 09 Jun 2008, 01:46 PM
Hello kjellgaute,

By design RadWindow will automatically show the Url of the page in the statusbar when the page is loaded. If you want to change it, you can do it after the content page is fully loaded:

oWnd.set_title(Navn);
oWnd.add_pageLoad(function(){oWnd.set_status("  "); });





Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
david
Top achievements
Rank 1
answered on 09 Jun 2008, 01:56 PM
Hmm, that actually does not work for me, I still get the url at the bottom?

var oWindow = window.radopen("Admin-Lecture-Update.aspx?LecturesID=" + id + "&CourseID="+CourseID, null);

oWindow.SetSize (700, 650);

oWindow.SetTitle (

"Edit Lecture");

oWindow.Center();

oWindow.add_pageLoad(

function(){oWnd.set_status(" "); });

0
kgg
Top achievements
Rank 1
answered on 09 Jun 2008, 02:03 PM

Did you try this?

oWindow.add_pageLoad(function(){oWindow.set_status("  "); });
0
david
Top achievements
Rank 1
answered on 09 Jun 2008, 02:19 PM
oops

thanks
0
Ravi
Top achievements
Rank 2
answered on 18 Nov 2008, 07:54 AM
thank you(its very useful to me)
0
Clive Hoggar
Top achievements
Rank 1
answered on 26 Feb 2009, 08:51 PM
Can you give me this in vb? I couldn't convert it without errors

Thanks

Clive
0
Charles
Top achievements
Rank 1
answered on 10 Mar 2009, 11:01 PM
seems like no matter what i try it will not set or reset the status bar text... here is what i am using 

 

function setstatusbar() {

 

 

 

var oWindow = GetRadWindow();

 

 

 

var text = "WeighIn Screen";

 

oWindow.set_status(text);

 

 

//oWindow.add_pageLoad(function() { oWindow.set_status(text); });

 

 

}

I am calling this from the onload property in the body tag 

 

<

 

 

body onload="javascript:setstatusbar();">

 

 

 

 

...the oWindow.add_pageLoad(function() { oWindow.set_status(text); }); call throws an error. Thanks for your help...

0
Georgi Tunev
Telerik team
answered on 11 Mar 2009, 12:14 PM
Hello Charles,

Try setting the onload property like this:

    <script language="javascript" type="text/javascript">   
            function GetRadWindow() {   
                var oWindow = null;   
                if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog   
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz az well)   
                return oWindow;   
            }   
 
        function setstatusbar()  
        { 
            var oWindow = GetRadWindow(); 
            var text = "WeighIn Screen"
            oWindow.set_status(text); 
        } 
    </script> 
 
</head> 
<body onload="setstatusbar();"

If you still experience problems, please open a support ticket and send us a small sample project so we can check it.


Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Charles
Top achievements
Rank 1
answered on 11 Mar 2009, 12:40 PM
sorry Georgi still doesnt clear the status, will start a ticket, Thanks... unfortunatley due to security issues cant send my project but the jist of the evolution is that I am opening a radwindow from a context menu on a radgrid. This is how i am opening the window:

case

 

"Add WeighIn Record":

 

 

var winAddRecord = new RadWindow

 

{

ID =

"UseListDialog",

 

Modal =

true,

 

Height = 300,

Behaviors = Telerik.Web.UI.

WindowBehaviors.Move | Telerik.Web.UI.WindowBehaviors.Close,

 

ShowContentDuringLoad =

true,

 

VisibleStatusbar =

true,

 

Width = 400,

NavigateUrl = (

"~/addweighin.aspx?ShipShapeID=" + this.txtShipShapeID.Value + "&Operation=Add"),

 

VisibleOnPageLoad =

true

 

};

RadWindowManager1.Windows.Add(winAddRecord);

 

break;

using the exact code you posted yesterday to try and clear the statusbar on page load:

 

 

function setstatusbar() {

 

 

var oWnd = GetRadWindow();

 

 

var text = "WeighIn Screen";

 

oWnd.set_status(text);

 

//oWnd.set_title(Navn);

 

 

 

 

 

//oWnd.add_pageLoad(function() { oWnd.set_status(" "); });

 

 

 

 

}

 

</script>

 

 

 

 

 

</telerik:RadCodeBlock>

 

</

 

head>

 

<

 

body onload="setstatusbar();">

 

0
Veenu
Top achievements
Rank 1
answered on 05 Apr 2010, 08:40 AM
hi,

i have one question
when we add pageload function like this
oWnd.add_pageLoad(function(){oWnd.set_status("  "); });

how will we remove this function using oWnd.remove_pageLoad()

this function will be added each time when you opens a window so best is to remove this function in onClientClose
but how can i remove this function using remove_pageLoad()

Thanks
0
Georgi Tunev
Telerik team
answered on 06 Apr 2010, 08:51 AM
Hello Veenu,

You could move the code in a separate function and remove the closing handler there:

function openWin()
{
    //your code here
    //add the closing handler
    oWnd.add_pageLoad(OnClientClose);
}
 
function OnClientClose(oWnd,args)
{
    oWnd.set_status("  ");
    oWnd.remove_close(OnClientClose);
}



Kind regards,
Georgi Tunev
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
Window
Asked by
david
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Paul
Top achievements
Rank 1
kgg
Top achievements
Rank 1
david
Top achievements
Rank 1
Ravi
Top achievements
Rank 2
Clive Hoggar
Top achievements
Rank 1
Charles
Top achievements
Rank 1
Veenu
Top achievements
Rank 1
Share this question
or