CodeBehind does not fire on tooltipified imagebutton.

2 posts, 0 answers
  1. Robert
    Robert avatar
    49 posts
    Member since:
    Sep 2008

    Posted 19 Oct 2010 Link to this post

    I have a imagebutton that has a tooltip attached to it. I want the tooltip to show when the imagebutton is pressed "Which it does" However I also have server side codebehind that needs to fire on the click event but the tooltip stops it from firing is there a way to make the radtooltip show and have the codebehind fire.
    Thanks for any help on this
  2. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 20 Oct 2010 Link to this post

    Hello Robert,

    I don't if this will work, but I would assume you would have to show the toolip maually in the OnClientClick event. Like so:

    <asp:ImageButton ID="ImageButton1" runat="server" OnClientClick="ShowTooltip();return true;" />

    You would then create a ShowTooltip javascript method to show the tooltip. Like so:

    function ShowTooltip()
    {
       $find("<%=RadTooltip1.ClientID%>").show();
    }

    The tooltip would set the OffsetElementId to the ImageButton and leave the OpenerElementId blank.

    I hope that helps.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top