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

Override Window page title

2 Answers 107 Views
Window
This is a migrated thread and some comments may be shown as answers.
Connections Academy Developer
Top achievements
Rank 1
Connections Academy Developer asked on 13 Aug 2009, 07:27 PM
In your support documentation, you have:

set_title Sets window title. Note that if the content page has its own title set in the @Page directive or in the <head> section, this title will override the RadWindow's one.

Is there a way to override the title set in the @Page directive or the head section?

2 Answers, 1 is accepted

Sort by
0
Accepted
Fiko
Telerik team
answered on 14 Aug 2009, 06:07 AM
Hi,

I believe that this forum thread will be of help.

Kind regards,
Fiko
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
Connections Academy Developer
Top achievements
Rank 1
answered on 14 Aug 2009, 12:44 PM
Excellent, this works for me:

<script type="text/javascript"
    function windowLoad(oWindow, args) 
    { 
        oWindow.set_title("New title"); 
    } 
    function openWindow() 
    { 
        var oWindow = radopen("Popup.aspx""RadWindow1"); 
        oWindow.remove_pageLoad(windowLoad); 
        oWindow.add_pageLoad(windowLoad); 
    } 
</script> 
Tags
Window
Asked by
Connections Academy Developer
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Connections Academy Developer
Top achievements
Rank 1
Share this question
or