This is a migrated thread and some comments may be shown as answers.

Modal RadToolTip not displayed after postback

6 Answers 220 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Quin
Top achievements
Rank 1
Quin asked on 30 May 2008, 03:45 PM
I have a page with a modal radtooltip that works fine upon loading the page.  However, after a postback the tootip is not displayed.   I have set the Z-Index really high for the tooltip and  this  helped to give the modal effect by graying out my screen, but you still cannot see the tooltip.  Does anyone have a solution to this?

<telerik:RadToolTip ID="RadToolTip1" runat="server" style="z-index:10000;" Modal="true" ManualClose="true" 
        ShowEvent="FromCode" Sticky="true" Position="Center" Skin="Vista" TargetControlID="btnNew"
I have tried both ShowEvent="OnClick" and ShowEvent="FromCode"

6 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 02 Jun 2008, 02:19 PM
Hello Quin,

When you perform a postback you actually dispose the RadToolTip control and therefore it can not stay opened.

What I can suggest is to change your logic, for example you can either reopen the tooltip when the page loads after the postback or perform an ajax request instead of a full postback. You should decide what modification to make depending on your particular scenario. 

Sincerely yours,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Quin
Top achievements
Rank 1
answered on 02 Jun 2008, 02:39 PM
Actually the problem is that the tooltip will not popup again after the postback. Even though the button is pressed again to invoke it.
0
Accepted
Tervel
Telerik team
answered on 04 Jun 2008, 06:25 AM
Hi Quin,

The behavior that you describe cannot happen as a result of a "regular" postback. Perhaps you use AJAX and partial page update, and while the part with the button gets updated, the tooltip probably does not and stays "hooked" to the old/disposed version of the button.
By the way, the ShowEvent property must be set ShowEvent = "OnClick", and not "FromCode". Using "FromCode" would require you to write some additional javascript code.

It would be best if you open a support ticket, and send us a working project that demonstrates the problem. Right now, there is information missing.


Kind regards,
Tervel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Quin
Top achievements
Rank 1
answered on 04 Jun 2008, 11:12 AM
Sorry, I didn't mention that, but yes it is an AJAX postback. Yes that was it.  The popup was not included in the radajaxpanel.  Thanks for  your help.
0
JPero
Top achievements
Rank 2
answered on 07 Jul 2008, 02:17 PM
Just a quick note on this, I'm not sure if this will help anyone or if this is even the best way to do this, but I had a similar issue, only not AJAX. I had everything running on the client side, and what I ended up doing is manually 'unhooking' the old reference.

<code>
...
tooltip.set_targetControlID(null);
tooltip.set_targetControlID(element.id);
...
</code>

This way no matter what was calling, the target would always be fresh, even if the tooltip thought is already knew the id. Again, not sure if this is the best, but it seems to work in my code so far.
0
Mark
Top achievements
Rank 1
answered on 22 Jun 2011, 10:47 PM
I had this problem as well.  The radtooltip did not show after an ajax postback. I had several panels inside an ajax update panel, and the target control was on one of those panels. The solution for me was to place the radtooltip within the ajax update panel, but not inside the regular panel within that ajax update panel.
Tags
ToolTip
Asked by
Quin
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Quin
Top achievements
Rank 1
Tervel
Telerik team
JPero
Top achievements
Rank 2
Mark
Top achievements
Rank 1
Share this question
or