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

Hide tooltip from Prometheus Radgrid column

5 Answers 135 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
lakshmi
Top achievements
Rank 1
lakshmi asked on 25 Apr 2008, 07:30 AM
I have a Promethues Radgrid. i have added tooltip for specific cells in the grid using RadTooltipManager. when i have clicked on the cell it show the tooltip content fine but it also shows the tooltip when i have clicked the column for sorting.
Is it possible to hide the tooltip, when radgrid column clicked? 

5 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 25 Apr 2008, 08:43 AM
Hi lakshmi,
That can only happen, in case you have a RadToolTipManager with an empty TargetControls collection. In this case, the manager tooltipifies everything on the page with a title attribute, in particular, the header cell of the columns of the RadGrid. In order to switch this behavior off, just set the AutoTooltipify property of all your managers to "false" and make sure that you have all IDs of targetElements in the TargetControls collection of the RadToolTipManager.

Best wishes,
Tsvetie
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
lakshmi
Top achievements
Rank 1
answered on 30 Apr 2008, 03:55 PM

Hi Tsvetie,

Thanks for your response.
From your reply "RadToolTipManager with an empty TargetControls collection, the manager tooltipifies everything on the page with a title attribute, in particular, the header cell of the columns of the RadGrid.

Am adding the ToolTip for grid cell. In the grid_itembound event, if i have data to show the tool tip, then i will add the cell id to the RadToolTip Manager. so every time before adding, i will clear the target collection.
 
For my case i don't have any static control to show the tooltip.

if no data in the grid, then the TargetControls collection will be empty, that time it shows the empty tool tip to the grid header column.
Could you please help on this.
-Lakshmi
0
Tsvetie
Telerik team
answered on 01 May 2008, 07:14 AM
Hello lakshmi,
As mentioned in my previous reply, you have to set AutoTooltipify="false" for the RadToolTipManager. That way, when its TargetControls collection is empty, the manager will not tooltipify anything.

Kind regards,
Tsvetie
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jeff Breuninger
Top achievements
Rank 1
answered on 03 Sep 2008, 06:46 PM

I am using the following code to attach an image in a template column to the tool tip manager, and I have AutoTooltipify="false" in my tool tip manager.  However, every time i roll over a column header it shows the tool tip.  It never shows the tool tip when I roll over the image that I attached it to during the ItemDataBound event.  Is there any reason why this is happening and not working as expected?

protected void rgPrimary_ItemDataBound(object sender, GridItemEventArgs e)

    try 
    { 
        /// Attach link to ToolTipManager. 
        Image img = e.Item.FindControl("imgToolTip") as Image; 
        if (img != null) 
        rtmToolTipManager.TargetControls.Add(img.ClientID, "id", true); 
    } 
    catch 
    { 

    }
}

<

telerik:RadToolTipManager runat="server" ID="rtmToolTipManager" AutoTooltipify="false"Animation="None" ShowDelay="0" Position="Center" RelativeTo="Element" Width="320px"ManualClose="false" Height="260px" Sticky="true" Skin="WebBlue" OnAjaxUpdate="rtmToolTipManager_AjaxUpdate"></telerik:RadToolTipManager>

0
Tervel
Telerik team
answered on 08 Sep 2008, 07:13 AM
Hi Jeff,

I carefully examined your code, and it looks fine. The RadToolTipManager declaration looks good too.
Your approach is very similar to the one used in several tooltip examples such as this one:
http://demos.telerik.com/aspnet/prometheus/ToolTip/Examples/ToolTipVersusToolTipManager/DefaultCS.aspx

We are unable to determine what might be causing the tooltip to not show where supposed to. The only possibility is that you use images in the grid headers as well and for some reason their client IDs match the IDs of images into the grid column itself.

In case you are not able to resolve the problem and need further help from us, you will need to open a support ticket and send us a working project that demonstrates the problem. Once we have it on our end, we will determine the reason for the inconsistent behavior and get back to you with a fix.

Greetings,
Tervel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ToolTip
Asked by
lakshmi
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
lakshmi
Top achievements
Rank 1
Jeff Breuninger
Top achievements
Rank 1
Tervel
Telerik team
Share this question
or