RadToolTipManager Enabled='false' Doesn't Work

9 posts, 0 answers
  1. Michelle
    Michelle avatar
    24 posts
    Member since:
    Aug 2007

    Posted 09 Oct 2008 Link to this post

    I set the enabled property of the RadTooltipManager to false, but the tooltip still shows sometimes.  Any ideas?

    Michelle
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 10 Oct 2008 Link to this post

    Hi Michelle,

    The Enabled property is inherited from the WebControl class and not implemented. Would you please provide additional information about your exact scenario?  If you are trying to prevent the RadToolTipManager from tooltipifing elements which are not in its TargetControls collection, you should set its Autotooltipify property to false. If you want to prevent it from tooltipifing the specified target controls, you should simpley clear it. You can also cancel the tooltip showing in the OnClientBeforeShow event but in order to provide you with the best solution, I need to have a better understanding on your exact scenario.

    Best wishes,
    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. Michelle
    Michelle avatar
    24 posts
    Member since:
    Aug 2007

    Posted 10 Oct 2008 Link to this post

    It's not a big deal.  I'm still working on developing my code for the RadToolTipManager, and while doing a demo for the Web Application, I sent eneabled = false, hoping that the tooltips wouldn't show up.  But they did, which made me think that the property had a bug. 

    With Microsoft functions, somehow they're able to indicate when properties (or, at least, functions and procedures) have become obsolete; it shows up in the tooltip/help text when you go to use a function.  Is it possible for you to indicate properties like this, which don't really get implemented?

    I've decided not to use the RadToolTipManager for now.  Maybe I'll add it later.

    Thanks again!
    Michelle
  5. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 13 Oct 2008 Link to this post

    Hi Michelle,

    Thank you for your suggestion to add a visual indication for the inherited properties which are not implemented as the RadToolTipManager's Enabled property. I forwarded your suggestion for future consideration.

    Kind regards,
    Svetlina
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Doug Beard
    Doug Beard avatar
    52 posts
    Member since:
    Jan 2008

    Posted 13 Oct 2008 Link to this post

    I also sought the visible and enabled properties in an attempt to prevent the tooltips from showing.

    If this feature does not yet exist I would love to see it added.
    An easy method of toggling visibility of tooltips including the autotooltips at runtime.



  7. Tervel
    Admin
    Tervel avatar
    1337 posts

    Posted 14 Oct 2008 Link to this post

    Hi Doug,

    Setting Visible = "false" will prevent the RadToolTip/RadTooTipManager from tooltipifying page/showing. That is, the Visible property works as expected - in fact as mandated by ASP.NET.

    It is the Enabled property only that will be considered for modifying its default behavior.


    Sincerely yours,
    Tervel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  8. Doug Beard
    Doug Beard avatar
    52 posts
    Member since:
    Jan 2008

    Posted 14 Oct 2008 Link to this post

    The Visible property serverside had no effect on the auto tooltips.  Maybe an ajax thing, I don't know for sure because I abadoned serverside for clientside.

    Instead I injected a script that keys off of the check toggle (this one happens to be in a RadToolbar and tied it to the onBeforeClientShow)...

     void injectToolTipToggleScript() 
            { 
                string script = @"
                function clientBeforeShow(sender, eventArgs)
                    {  
                        var toolBar = $find('" + toolMain.ClientID + @"');
                        var button = toolBar.findItemByValue('ToolTipToggle');  
                        var checked = button.get_checked();
                        eventArgs.set_cancel(checked);
                    }
                    "
                this.Page.ClientScript.RegisterStartupScript(typeof(Page), "ToolTipToggleScript", script, true); 
            } 

  9. Tervel
    Admin
    Tervel avatar
    1337 posts

    Posted 15 Oct 2008 Link to this post

    Hello Doug Beard,

    It seems that you set the RadToolTipManager property to False with the use of AJAX.
    However, please note that AJAX is all about partial page updates. Likely, the container which holds the RadToolTipManager does not get updated as a result of this AJAX request. As a result, all changes to the state of its child controls are not transferred from the server to the client.

    You can easily test for this by adding a <asp:TextBox> underneath the RadToolTipManager, and then setting its Visible property on the server. If my assumptions are correct you will notice that no change occurs on the client-side and the textbox would still be visible.


    Greetings,
    Tervel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  10. Doug Beard
    Doug Beard avatar
    52 posts
    Member since:
    Jan 2008

    Posted 15 Oct 2008 Link to this post

    I had ajaxified the ToolTipManager with the AjaxManager with the trigger control being the ToolBar.  I could tell that the AjaxManager was indeed ajaxified because I put a loading panel over it as a visual que.

    I'm unsure what the problem was, I'm sure it was related to partial page updates, or in particular, the way I had used AjaxManager to ajaxify it.  But I did not investigate further, because I switched to pure clientside to handle it.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017