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
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:
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/)