Problem with Disable Tooltip

4 posts, 1 answers
  1. Thomas Knauf
    Thomas Knauf avatar
    2 posts
    Member since:
    Oct 2008

    Posted 26 Mar 2009 Link to this post

    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 ?           
  2. Answer
    Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 30 Mar 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 25 Mar 2015 in reply to Svetlina Anati Link to this post

    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
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 25 Mar 2015 Link to this post

    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.

     
Back to Top