Hi,
In server side, I created a tooltip like this:
<telerik:RadToolTip ID="RadToolTip1" runat="server" Skin="Web20"
Animation="Resize" AutoCloseDelay="5000" EnableViewState="False"
RelativeTo="Element" ShowEvent="FromCode" Position="ButtomLeft">
</telerik:RadToolTip>
In client-side, my script does:
var tooltip = $find(this.get_tooltipId());
if (tooltip)
{
tooltip.set_targetControl(AControl.get_element());
tooltip.set_title("Some title");
tooltip.set_text("Some text");
tooltip.set_position("MiddleRight"); // !where the error occurs!
tooltip.show();
}
If I commented out the line that changes the default position, everything works fine. But when I tried to change the position, I got an exception from Sys.UI.Bounds = function Sys$UI$Bounds(x, y, width, height), where y is set to NaN and X is -322 which I think both wrong.
Any idea?
In server side, I created a tooltip like this:
<telerik:RadToolTip ID="RadToolTip1" runat="server" Skin="Web20"
Animation="Resize" AutoCloseDelay="5000" EnableViewState="False"
RelativeTo="Element" ShowEvent="FromCode" Position="ButtomLeft">
</telerik:RadToolTip>
In client-side, my script does:
var tooltip = $find(this.get_tooltipId());
if (tooltip)
{
tooltip.set_targetControl(AControl.get_element());
tooltip.set_title("Some title");
tooltip.set_text("Some text");
tooltip.set_position("MiddleRight"); // !where the error occurs!
tooltip.show();
}
If I commented out the line that changes the default position, everything works fine. But when I tried to change the position, I got an exception from Sys.UI.Bounds = function Sys$UI$Bounds(x, y, width, height), where y is set to NaN and X is -322 which I think both wrong.
Any idea?