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

radToolTip and Java applet

2 Answers 105 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Tiberiu Saulean
Top achievements
Rank 1
Tiberiu Saulean asked on 25 Nov 2009, 01:33 PM
I have a java applet in my page(more info: http://www.mindfusion.eu/onlinehelp/netdiagram/index.htm)  and my RadToolTip is beeing covered by the applet.Is there an option for RadToolTip like 'always on top' or how can i fix this?
Is working only in IE

2 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 30 Nov 2009, 12:10 PM
Hi Tiberiu Saulean,

In order to get the desired result, please hook up the tooltip's OnClientBeforeShow event and execute teh following code there:

function OnClientBeforeShow(sender, args)
{
    sender._popupBehavior.set_overlay(true)
}


Sincerely yours,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Tiberiu Saulean
Top achievements
Rank 1
answered on 30 Nov 2009, 01:00 PM
thanks.

Can you help me with this?

I have this
- diagram java applet( http://mindfusion.eu/demos/jdiagram/start.htm ) ;
- <telerik:RadToolTip runat="server" ID="radToolTipActivitate" Width="300px" Height="190px" ShowEvent="FromCode" IsClientID="true" HideEvent="LeaveToolTip" OnClientBeforeShow="radToolTipOnClientBeforeShow" MouseTrailing="true" RelativeTo="Mouse" Position="TopRight" >;

If i click on some node in the diagram,i use radToolTip.show() to displayt a panel with node's properties.Because the node is not a control,i want my radToolTip to be displayed relative to the mouse position,but this is not happening,it is displayed on TopRight corner of the browser window.


My second aproach is :
<telerik:RadToolTip runat="server" ID="radToolTipActivitate" Width="300px" Height="190px" ShowEvent="FromCode" IsClientID="true" HideEvent="LeaveToolTip" OnClientBeforeShow="radToolTipOnClientBeforeShow" MouseTrailing="true" RelativeTo="BrowserWindow" Position="TopRight">
   When i click on some node,i use this,but the radToolTip is displayed with errors(only 3/4 of the radToolTip):
function onNodeClicked(diagram,args)
{
                var x = args.getMousePosition().getX();
                var y = args.getMousePosition().getY();
                
                ShowTooltip(x,y);
}
          function ShowTooltip(x,y) {        
            var tooltip = $find("<%= radToolTip.ClientID %>");
                  tooltip.set_offsetX(x);
                  tooltip.set_offsetY(y);
                  tooltip.show();
          }


x = A Point2D.Float object representingthe mouse position in document coordinates
(http://www.mindfusion.eu/onlinehelp/netdiagram/)

Tags
ToolBar
Asked by
Tiberiu Saulean
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Tiberiu Saulean
Top achievements
Rank 1
Share this question
or