Window Title

3 posts, 0 answers
  1. asilioni
    asilioni avatar
    17 posts
    Member since:
    Feb 2011

    Posted 14 May 2012 Link to this post

    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. Marin Bratanov
    Admin
    Marin Bratanov avatar
    5705 posts

    Posted 16 May 2012 Link to this post

    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.
  3. asilioni
    asilioni avatar
    17 posts
    Member since:
    Feb 2011

    Posted 17 May 2012 Link to this post

    Thank you a lot Marin,
    your suggestion solved my problem!
Back to Top