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

Mouse over and onclick needed on ShowEvent RadToolTipManager

2 Answers 148 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
chen
Top achievements
Rank 1
chen asked on 02 Jun 2014, 12:38 PM
Hi. Good day

May I know is it possible to set both onMouseOver and OnClick to a RadToolTipManager's ShowEvent? I have a scenario where user can mouseover on the a customTemplate column to show tooltip of the item's description and when user click on it, it shows the tooltip with a textbox to update the value of the item in the radgrid.

Please advise on how to achieve this. Thanks in advanced.

Regards
Yung

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 03 Jun 2014, 05:39 AM
Hi Chen,

Please try to use the RadToolTip to achieve your scenario. Please have a look into the sample code snippet which works fine at my end.

ASPX:
<telerik:RadToolTip ID="RadToolTip1" TargetControlID="RadTextBox1" Text="CustomText"
    ShowEvent="FromCode" runat="server" RelativeTo="Element">
</telerik:RadToolTip>
<telerik:RadTextBox ID="RadTextBox1" runat="server" ClientEvents-OnMouseOver="ShowToolTip"
    ClientEvents-OnFocus="ShowToolTip">
</telerik:RadTextBox>

JavaScript:
function ShowToolTip(sender, args) {
    var tooltip = $find("<%=RadToolTip1.ClientID%>");
    tooltip.show();
}

Thanks,
Shinu.
0
chen
Top achievements
Rank 1
answered on 03 Jun 2014, 05:25 PM
Hi Shinu, Thanks for the reply.
Yeah I managed to do it by adding two Radtooltip controls into the Radgrid's TemplateColumn.
I can get what I wanted to achieve already. Thanks!

Tags
ToolTip
Asked by
chen
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
chen
Top achievements
Rank 1
Share this question
or