Hi,
I'm having trouble with the positioning of a radtooltip.
I have a page containing a sort of quiz. It has a next and a previous button. To the buttons I add a page validation summary type of function. The summary is created serverside and opened.
My tooltip code looks lite:
<telerik:RadToolTip runat="server" ID="valSumPop" Animation="None" Skin="Simple" RelativeTo="Element" ShowEvent="FromCode" IsClientID="false" HideEvent="LeaveToolTip">
<div style="padding: 5px;">
<asp:Literal runat="server" ID="litValSum" />
</div>
</telerik:RadToolTip>
and my serverside code looks something like this:
string btID = ((LinkButton)sender).ID.ToString();
valSumPop.TargetControlID = btID;
valSumPop.Width = Unit.Pixel(125);
string[] valStr = valSumText.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
if (valStr.Length > 0)
{
litValSum.Text = guiText.getGuiText("validationText", langId, companyId) + "<br />";
foreach (string s in valStr)
{
litValSum.Text += s + "<br />";
}
valSumPop.Show();
}
I attached 3 images to illustrate what happens. If I click the next button the tooltip appears below the button and far to the right. It also seems broken. The arrow is directly below the button but offset about 50-100 px.
If the previous button is clicked once then the next button can be clicked and the tooltip is positioned properly.
Does anyone know what causes this?
Thanks
/Christofer
I'm having trouble with the positioning of a radtooltip.
I have a page containing a sort of quiz. It has a next and a previous button. To the buttons I add a page validation summary type of function. The summary is created serverside and opened.
My tooltip code looks lite:
<telerik:RadToolTip runat="server" ID="valSumPop" Animation="None" Skin="Simple" RelativeTo="Element" ShowEvent="FromCode" IsClientID="false" HideEvent="LeaveToolTip">
<div style="padding: 5px;">
<asp:Literal runat="server" ID="litValSum" />
</div>
</telerik:RadToolTip>
and my serverside code looks something like this:
string btID = ((LinkButton)sender).ID.ToString();
valSumPop.TargetControlID = btID;
valSumPop.Width = Unit.Pixel(125);
string[] valStr = valSumText.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
if (valStr.Length > 0)
{
litValSum.Text = guiText.getGuiText("validationText", langId, companyId) + "<br />";
foreach (string s in valStr)
{
litValSum.Text += s + "<br />";
}
valSumPop.Show();
}
I attached 3 images to illustrate what happens. If I click the next button the tooltip appears below the button and far to the right. It also seems broken. The arrow is directly below the button but offset about 50-100 px.
If the previous button is clicked once then the next button can be clicked and the tooltip is positioned properly.
Does anyone know what causes this?
Thanks
/Christofer