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

how to disable radtooltip?

2 Answers 267 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Eric Sims
Top achievements
Rank 1
Eric Sims asked on 09 Sep 2008, 03:17 PM
i've got a checkbox that i want to be able to control whether or not the tooltipmanager i have shows the tooltip. i'm using a raddatagrid and the tooltips work fine on it, but i want to be able to control whether or not it shows.

so i put an asp checkbox control and on the checkchanged event, i set the mytootipmanager.visible = mycheckbox.checked. this makes it invisible, but then won't re-enable it. ie, once it's off, it's off.

ideas?

2 Answers, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 11 Sep 2008, 08:52 AM
Hi Eric,

Do you use AJAX to change the tooltip manager visibility?
Also- when you make it visible, do you also make sure that the tooltip manager's TargetControls collection is properly filled (unless, of course you use the property AutoTooltipify = true, when having control IDs in the collection is not necessary).

For your convenience I prepared a sample test page that works fine on our end. Please find attached.
In case you need extra assistance, please open a support ticket and send us your project for us to examine.

Kind regards,
Tervel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Eric Sims
Top achievements
Rank 1
answered on 11 Sep 2008, 12:58 PM
thank you very much for this sample. something like this still isn't working for me. however, i did just figure out how to do this at the cilent, which is just as good for this. on the OnClientBeforeShow event for the RadToolTipManager, i just call the following javascript function....

function clientBeforeShow(sender, eventArgs)
                {  
                    var chk = $get('chkShowToolTip'); //controlling checkbox
                    if (chk.checked == true){                   
                        eventArgs.set_cancel(false);
                    }
                    else{
                        eventArgs.set_cancel(true);
                    }
                }
Tags
ToolTip
Asked by
Eric Sims
Top achievements
Rank 1
Answers by
Tervel
Telerik team
Eric Sims
Top achievements
Rank 1
Share this question
or