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

RadToolTipManager Enabled='false' Doesn't Work

8 Answers 95 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Michelle
Top achievements
Rank 1
Michelle asked on 09 Oct 2008, 05:21 PM
I set the enabled property of the RadTooltipManager to false, but the tooltip still shows sometimes.  Any ideas?

Michelle

8 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 10 Oct 2008, 02:21 PM
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.
0
Michelle
Top achievements
Rank 1
answered on 10 Oct 2008, 04:45 PM
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
0
Svetlina Anati
Telerik team
answered on 13 Oct 2008, 10:32 AM
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.
0
Doug Beard
Top achievements
Rank 2
answered on 13 Oct 2008, 09:12 PM
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.



0
Tervel
Telerik team
answered on 14 Oct 2008, 06:53 AM
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.
0
Doug Beard
Top achievements
Rank 2
answered on 14 Oct 2008, 04:43 PM
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); 
        } 

0
Tervel
Telerik team
answered on 15 Oct 2008, 08:59 AM
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.
0
Doug Beard
Top achievements
Rank 2
answered on 15 Oct 2008, 01:03 PM
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.
Tags
ToolTip
Asked by
Michelle
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Michelle
Top achievements
Rank 1
Doug Beard
Top achievements
Rank 2
Tervel
Telerik team
Share this question
or