14 Answers, 1 is accepted
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
Ie on page load so the user get the progresss bar then the status bar hides ?
thanks
I'm using this code:
|
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
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
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(" "); });
Did you try this?
oWindow.add_pageLoad(function(){oWindow.set_status(" "); });thanks
Thanks
Clive
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...
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.
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();">
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
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.