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

CodeBehind does not fire on tooltipified imagebutton.

1 Answer 47 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 19 Oct 2010, 08:00 PM
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

1 Answer, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 20 Oct 2010, 01:17 PM
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.
Tags
ToolTip
Asked by
Robert
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Share this question
or