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

Tooltip for each cell

3 Answers 143 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Janaki
Top achievements
Rank 1
Janaki asked on 31 Dec 2012, 04:32 AM
Hi all,

I have a RadGrid. I need to give tooltip for each cell in the Grid. How can I do that?

Thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 31 Dec 2012, 04:56 AM
Hi,

Please try the following code snippet to give ToolTip for each cell in RadGrid.

C#:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
    foreach (TableCell cell in e.Item.Cells)
    {
        cell.ToolTip = cell.Text;
    }
}

Thanks,
Shinu.
0
Clive Hoggar
Top achievements
Rank 1
answered on 07 Jan 2013, 04:36 PM
This is a useful technique;   in this context, how can I move the tooltip default position to top center?
0
Shinu
Top achievements
Rank 2
answered on 08 Jan 2013, 06:32 AM
Hi,

One suggestion is that you can use RadToolTipManager as shown below.
aspx:
<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server"  Position="TopCenter" RelativeTo="BrowserWindow" AutoTooltipify="true">
</telerik:RadToolTipManager>

Thanks,
Shinu.
Tags
Grid
Asked by
Janaki
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Clive Hoggar
Top achievements
Rank 1
Share this question
or