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

management tooltip from vb code

1 Answer 22 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Fabio Cirillo
Top achievements
Rank 1
Fabio Cirillo asked on 25 Mar 2013, 01:17 PM
Hi,
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>
    </telerik:RadButton>
    <hr />
    <telerik:RadButton ID="RadButton2" runat="server" Text="Rimuovi foto"
        Width="130px" ButtonType="LinkButton" Skin="Office2010Silver">
        <Icon PrimaryIconCssClass="rbRemove" PrimaryIconLeft="4" PrimaryIconTop="4"></Icon>
    </telerik:RadButton>
</telerik:RadToolTip>

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.

1 Answer, 1 is accepted

Sort by
0
rdmptn
Top achievements
Rank 1
answered on 27 Mar 2013, 09:37 AM
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.
Tags
ToolTip
Asked by
Fabio Cirillo
Top achievements
Rank 1
Answers by
rdmptn
Top achievements
Rank 1
Share this question
or