I have a templated server control, which is placed inside an ASP:UpdatePanel.
Inside this templated server control, I have placed a label/RadTooltip combination.
<asp:UpdatePanel ID="pnl1" runat="server" UpdateMode="Conditional" >
<cc1:TemplatedControl ID="TemplatedControl1" runat="server">
<asp:Label runat="server" ID="Label1" Text="Click here for the toolip (Inside Custom Template, Inside UpdatePanel)" />
<telerik:RadToolTip ID="RadToolTip2" TargetControlID="Label1" runat="server">
<asp:Label ID="lblContent02" runat="server" Text="Test Tooltip inside Template" />
The complete source code can be downloaded here (I was not allowed to attach a zip file):
This is a very simple project which I created only to demonstrate the issue.
Now the issue appears after a partial postback. The Tooltip behaviour is lost after the ASP:UpdatePanel is refreshed.
I cannot figure out how I should modify my templated control so that the toolip behavior is kept. (In practise, the JS line $create(Telerik.Web.UI.RadToolTip, .... is not called, and I guess the JQuery object is not created).
- If the tooltip is outside of any templated control, it works fine
- If the tooltip is inside an UpdatePanel, it works fine, even after postback
- If the tooltip is inside a custom templated control, it works fine
So it is somehow the conjunction of both the templated server control and the updatepoanel which makes the RadTooltip go crazy.
I someone could take a quick look at this source code and tell me what I did wrong, I would be very grateful.
If I should submit the source by somne other mean, please tell me how to do so.