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

RadToolTipManager, RadGrid & GridImageColumn

1 Answer 133 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Chip Pace
Top achievements
Rank 1
Chip Pace asked on 08 Mar 2010, 07:27 PM

Can you provide or point me to an example of adding a RadToolTip to a RadGrid:GridImageColumn.

 

The sample code I have seen finds the target control using e.Item.FindControl to find the control by Id name but I don’t know how to find the GridImageColumn since it doesn’t have an Id attribute.

 

Thanks,

-Chip

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 11 Mar 2010, 05:19 PM
Hello Chip Pace,

You can add the ClientID of teh cell to the TargetControls collection afetr you have referenced it by using its UniqueName as shown below:

protected void OnItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item is GridDataItem)
    {
        GridDataItem dataItem = e.Item as GridDataItem;
        TableCell cell = dataItem["ColumnUniqueName"];
        RadToolTipManager1.TargetControls.Add(cell.ClientID, "value" ,true);
    }
}



Sincerely yours,
Svetlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ToolTip
Asked by
Chip Pace
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or