Is it possible to hide the tooltip, when radgrid column clicked?
5 Answers, 1 is accepted
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
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
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
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>
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.