Modal RadToolTip not displayed after postback

7 posts, 1 answers
  1. Quin
    Quin avatar
    21 posts
    Member since:
    Dec 2007

    Posted 30 May 2008 Link to this post

    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"
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 02 Jun 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Quin
    Quin avatar
    21 posts
    Member since:
    Dec 2007

    Posted 02 Jun 2008 Link to this post

    Actually the problem is that the tooltip will not popup again after the postback. Even though the button is pressed again to invoke it.
  5. Answer
    Tervel
    Admin
    Tervel avatar
    1337 posts

    Posted 04 Jun 2008 Link to this post

    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
  6. Quin
    Quin avatar
    21 posts
    Member since:
    Dec 2007

    Posted 04 Jun 2008 Link to this post

    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.
  7. JPero
    JPero avatar
    8 posts
    Member since:
    Aug 2007

    Posted 07 Jul 2008 Link to this post

    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.
  8. Mark Meikle
    Mark Meikle avatar
    16 posts
    Member since:
    Mar 2010

    Posted 22 Jun 2011 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017