Mouse over and onclick needed on ShowEvent RadToolTipManager

3 posts, 1 answers
  1. chen
    chen avatar
    3 posts
    Member since:
    Dec 2010

    Posted 02 Jun 2014 Link to this post

    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. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 03 Jun 2014 in reply to chen Link to this post

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

    Posted 03 Jun 2014 in reply to Shinu Link to this post

    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!

Back to Top