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

Window Title

2 Answers 26 Views
Window
This is a migrated thread and some comments may be shown as answers.
asilioni
Top achievements
Rank 1
asilioni asked on 14 May 2012, 06:06 AM
Hi,
i am using rad window as a control container, in a sharepoint application, but i have a problem with the title of the window. While the window is loading, the title seems to be ok, but after loading completes, the title changes to the title of the page(.ascx file) the window contains. I tried to remove the title at all with no luck! In visual studio everything works fine...
Can you please help me avoid this situation?

Thanks a lot,
Angie

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 16 May 2012, 11:28 AM
Hi Angie,

When a RadWnidow is used with its ContentTemplate the controls are on the same page and there isn't any loading done when you show it. User controls do not have a Title property and thus they could not override the title of the RadWindow.

The above leads me to believe that you are actually loading an entire page in the RadWindow (you can see the difference in this demo) and  therefore this is the expected behavior - a RadWindow takes the title of the page loaded inside because browser windows have the same behavior. What you can do to override this if you cannot/should not remove the title of the content page - add a handler to its OnClientPageLoad event and set your own title again, for example:
function OnClientPageLoad(sender, args)
{
    sender.set_title('The desired title');
}



Regards,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
asilioni
Top achievements
Rank 1
answered on 17 May 2012, 06:29 PM
Thank you a lot Marin,
your suggestion solved my problem!
Tags
Window
Asked by
asilioni
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
asilioni
Top achievements
Rank 1
Share this question
or