or
Uncaught Sys.ArgumentOutOfRangeException: Sys.ArgumentOutOfRangeException: Value must be an integer.
Parameter name: x
Actual value was NaN. ScriptResource.axd:237
Error$create ScriptResource.axd:237
Error$argumentOutOfRange ScriptResource.axd:302
Function$_validateParameterType ScriptResource.axd:217
Function$_validateParameter ScriptResource.axd:130
Function$_validateParams ScriptResource.axd:84
Sys$UI$Bounds ScriptResource.axd:3924
window.$telerik.window.TelerikCommonScripts.Telerik.Web.CommonScripts.getBounds ScriptResource.axd:247
$T.RadToolTip._getBoundsRelativeToElement ScriptResource.axd:429
$T.RadToolTip.getToolTipBounds ScriptResource.axd:482
$T.RadToolTip._reSetToolTipPosition ScriptResource.axd:646
$T.RadToolTip._reSetPositionWithoutFlicker ScriptResource.axd:651
(anonymous
function
) ScriptResource.axd:150
(anonymous
function
) ScriptResource.axd:47
(anonymous
function
) ScriptResource.axd:3484
Sys$WebForms$PageRequestManager$_endPostBack ScriptResource.axd:865
Sys$WebForms$PageRequestManager$_scriptsLoadComplete ScriptResource.axd:1729
(anonymous
function
) ScriptResource.axd:31
(anonymous
function
) ScriptResource.axd:47
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:342
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_nextSession ScriptResource.axd:357
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:344
Sys$_ScriptLoader$_nextSession ScriptResource.axd:357
Sys$_ScriptLoader$loadScripts ScriptResource.axd:262
Sys$WebForms$PageRequestManager$_onFormSubmitCompleted ScriptResource.axd:1344
(anonymous
function
) ScriptResource.axd:47
(anonymous
function
) ScriptResource.axd:3484
Sys$Net$WebRequest$completed ScriptResource.axd:6364
Sys$Net$XMLHttpExecutor._onReadyStateChange ScriptResource.axd:5984
function
showToolTip(element) {
var
tooltipManager = $find(
"<%= toolTipManagerMain.ClientID %>"
);
//If the user hovers the image before the page has loaded, there is no manager created
if
(!tooltipManager)
return
;
//Find the tooltip for this element if it has been created
var
tooltip = tooltipManager.getToolTipByElement(element);
//Create a tooltip if no tooltip exists for such element
if
(!tooltip) {
tooltip = tooltipManager.createToolTip(element);
var
message = element.getAttribute(
"alt"
, 2);
tooltip.set_value(message);
tooltip.set_animationDuration(0);
}
}
<
telerik:RadToolTipManager
ID
=
"toolTipManagerMain"
runat
=
"server"
HideEvent
=
"ManualClose"
Animation
=
"Fade"
OnAjaxUpdate
=
"OnAjaxUpdate"
RelativeTo
=
"Element"
Width
=
"180px"
Height
=
"150px"
Style
=
"font-size: 18px; text-align: center; font-family: Arial;"
RenderInPageRoot
=
"True"
>
protected
void
OnAjaxUpdate(
object
sender, ToolTipUpdateEventArgs args)
{
Control ctrl = Page.LoadControl(
"~/Controls/ToolTip/ToolTipSummary.ascx"
);
args.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl);
ToolTipSummary details = (ToolTipSummary)ctrl;
details.Data = args.Value;
}
<
div
id
=
"testId"
class
=
"toolTipGuide"
alt="<%# ToolTipMessage %>" runat="server" onmouseover="showToolTip(this);">?</
div
>
private
string
_tookTipMessage =
""
;
public
string
ToolTipMessage
{
get
{
return
_tookTipMessage; }
set
{ _tookTipMessage = value; }
}
protected
void
Page_Load(
object
sender, EventArgs e)
{
}