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

How to hide/show titlebar onmouseover/onmouseout?

3 Answers 52 Views
Window
This is a migrated thread and some comments may be shown as answers.
Adam Toth
Top achievements
Rank 1
Adam Toth asked on 20 Aug 2010, 08:36 PM
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

3 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 24 Aug 2010, 04:06 PM
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
0
Adam Toth
Top achievements
Rank 1
answered on 25 Aug 2010, 11:46 PM
Thanks.

I am using a mix of NavigateUrl windows (iframe) and windows that load ASCX user controls into the ContentTemplate.
0
Fiko
Telerik team
answered on 31 Aug 2010, 08:56 AM
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
Tags
Window
Asked by
Adam Toth
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Adam Toth
Top achievements
Rank 1
Share this question
or