Completed
Last Updated: 05 Jul 2013 12:52 by ADMIN
ADMIN
Marin Bratanov
Created on: 13 Jun 2013 12:08
Category: Window
Type: Bug Report
4
FIX Since Q2 2013 RadWindow no longer takes the content page title if ShowContentDuringLoad=true
If the content page has a title RadWindow should set it for its own title, unless its Title property has been set explicitly.

Since Q2 2013, when ShowContentDuringLoad=true (which is the default value) this does not happen.

The second workaround is using the OnClientPageLoad event:
			function OnClientPageLoad(sender)
			{
				try
				{
					var pageTitle = sender.get_contentFrame().contentWindow.document.title;
					sender.set_title(sender.get_title() == "" ? pageTitle : sender.get_title());
				}
				catch (err)
				{

				}
			}
The try-catch block is used to catch errors in case the page is from another domain and the JavaScript same-origin policy is in effect.

The event handler can also be attached to the RadWindow manager so that it will be used for all its RadWindows.
0 comments