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
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.
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
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">
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
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.
Thanks & Regards
Praveen Kumar. P
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;"
)
});
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
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>
I want to hide the status bar of nested rad window....
Can anyone having solution on this .....
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.
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;
}
<asp:LinkButton ID="Lnk" Text="TEST" OnClientClick="Javascript:return ShowDetails();"
runat="server"></asp:LinkButton>