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

Problem with Disable Tooltip

3 Answers 98 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Thomas Knauf
Top achievements
Rank 1
Thomas Knauf asked on 26 Mar 2009, 12:29 PM
Hello, 
I tried to Disable the Radtooltip,
<telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID ="myTarget"  Position ="TopCenter"  AutoCloseDelay ="0"  Enabled ="false">


but the Tooltip is still active... 

I want to disable / enable the tooltip with Javascript, 
but set_visible(true / false) don't work.

I Use the RadControls Q1 2009 

any Idea ?           

3 Answers, 1 is accepted

Sort by
0
Accepted
Svetlina Anati
Telerik team
answered on 30 Mar 2009, 03:01 PM
Hello Thomas,

If I have understand you correctly, you want to be able to show and hide the tooltip programmatically on the client when needed. If so, you should not trigger the visible or enable properties, but to set ShowEvent=FromCode, the desired HideEvent and show/hide it by obtaining a reference to it and call its show() and hide() methods. If you need further assistance, please prepare a sample demo, open a new support ticket and send the demo to me along with detailed explanations of the actual and the desired behavior and I will do my best to help.


Greetings,
Svetlina
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
answered on 25 Mar 2015, 10:50 AM
I am trying the same: Disabling the tooltip functionality by

RadToolTip1.Enabled = False

It does not work. It works when I use:

                RadToolTip1.TargetControlID = ""

Any insight on this?

Marc
0
Marin Bratanov
Telerik team
answered on 25 Mar 2015, 01:02 PM

Hello Marc,

Could you try adding this as a handler to the OnClientBeforeShow event (http://www.telerik.com/help/aspnet-ajax/tooltip-client-side-beforeshow.html):

function OnClientBeforeShow(sender, args) {
    if (sender.get_element().getAttribute("disabled"))
        args.set_cancel(true);
}

If this is the behavior you seek and you would like it implemented in the tooltip control, you can post your request in our feedback portal: http://feedback.telerik.com/project/108.

Regards,

Marin Bratanov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
ToolTip
Asked by
Thomas Knauf
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Marin Bratanov
Telerik team
Share this question
or