management tooltip from vb code

2 posts, 0 answers
  1. Fabio Cirillo
    Fabio Cirillo avatar
    181 posts
    Member since:
    Jan 2010

    Posted 25 Mar 2013 Link to this post

    I have this tooltip:

    <telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="Imgprofile"
        ManualClose="true" Width="140px" Position="MiddleRight"
            Skin="Simple" RelativeTo="Element">
        <telerik:RadButton ID="RadButton1" runat="server" Text="Carica foto"
            Width="130px" ButtonType="LinkButton" Skin="Office2010Silver">
            <Icon PrimaryIconCssClass="rbAdd" PrimaryIconLeft="4" PrimaryIconTop="4"></Icon>
        <hr />
        <telerik:RadButton ID="RadButton2" runat="server" Text="Rimuovi foto"
            Width="130px" ButtonType="LinkButton" Skin="Office2010Silver">
            <Icon PrimaryIconCssClass="rbRemove" PrimaryIconLeft="4" PrimaryIconTop="4"></Icon>

    that allows you to upload your profile picture, or remove it. I wish that when I open the webpage if the image is not in the database, this tooltip appears automanticamente and that the "remove image" is disabled. However, if the image is loaded then the tooltip should not show but if you go above the image with the mouse then the tooltip to appear and must be enabled buttons.

    all this should be done by code vb net, code behind because I can manage to code if the image is loaded or not.
  2. rdmptn
    rdmptn avatar
    72 posts
    Member since:
    Aug 2011

    Posted 27 Mar 2013 Link to this post

    Just use the Enabled property of the buttons to toggle if they are enabled according to your flags/database/whatever.
    Use the Show() server method to show the tooltip from the code-behind if you need to.
    Set the desired target as a TargetControl and the tooltip will show when it is hovered.
Back to Top