How to hide/show titlebar onmouseover/onmouseout?

4 posts, 0 answers
  1. Adam Toth
    Adam Toth avatar
    41 posts
    Member since:
    Oct 2005

    Posted 20 Aug 2010 Link to this post

    I have a requirement that my windows do not show the titlebar unless the user mouses over the window.

    I don't see an onmouseover/out client event for RadWindow, and I'm sure this is a little complicated with iFrames capturing the mouse events.

    Is there anything you can suggest to get me started?

    I can use the set_visibleTitlebar method, but I'd like to use jquery to fade in/out the title bar, and possibly to attach an event handler to one of the RadWindow dom elements to detect the mouseover/mouseout.

    Thanks,

    Adam
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 24 Aug 2010 Link to this post

    Hello Adam,

    In general you can use this approach in order to hide the title bar row (oWindow is the client-side RadWindow object):
    var titleBar = oWindow.GetTitlebar();
    $telerik.$(titleBar).parent().hide();

    The full solution, however, depends on how do you use the RadWindow control. Do you use its NavigateUrl property (which causes the content to be loaded in an IFRAME) or its ContentTemplate inner property (in this case a DIV is rendered that wraps the content)?


    Regards,
    Fiko
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Adam Toth
    Adam Toth avatar
    41 posts
    Member since:
    Oct 2005

    Posted 25 Aug 2010 Link to this post

    Thanks.

    I am using a mix of NavigateUrl windows (iframe) and windows that load ASCX user controls into the ContentTemplate.
  4. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 31 Aug 2010 Link to this post

    Hi Adam,

    I have attached a demo which shows how to achieve the desired result in both cases.

    I hope this helps.

    Regards,
    Fiko
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top