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

set_status being replaced by URL

1 Answer 157 Views
Window
This is a migrated thread and some comments may be shown as answers.
Robert Bross
Top achievements
Rank 1
Robert Bross asked on 08 Jul 2008, 03:22 PM
I am trying to use the set_status method when I create a new window and the status that I am setting always gets overwritten with the URL of window. Am I missing something? In the sample below the "Test Window Status" shows up for a second but is then replaced by http://www.google.com.

Thanks!

========== Sample Code ====================

<%

@ Page Language="C#"%>

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<

html><head runat="server">

<script type="text/javascript">

function openWindow(){

var oWindow =radopen("http://www.google.com", "window1");

oWindow.set_status(

"Test Window Status");}

</script>

</

head>

<

body><form id="form" runat="server">

<telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>

<telerik:RadWindowManager ID="RadWindowManager1" runat="server"></telerik:RadWindowManager>

<input type="button" value="New Window" onclick="openWindow();" />

</

form></body></html>

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 09 Jul 2008, 07:38 AM
Hi Robert,

You need to set the status when the page is fully loaded - otherwise it will be replaced:

function openWindow() 
    var oWindow =radopen("http://www.google.com""window1"); 
    oWindow.add_pageLoad(OnClientPageLoad); 
     
     
 
function OnClientPageLoad(sender,args) 
   sender.set_status("Test Window Status"); 

I hope this helps.

Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Robert Bross
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or