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

[Solved] Adding tooltips for detail table items

1 Answer 160 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 02 Feb 2010, 04:06 PM
I have implemented tool tips for my grid, and I used as an example the code found in the Telerik topic entitled, "Adding tooltips for grid items."

However, I have come across something that I can't find an answer for in the help or the forums.  I have a grid with both a master and detail table.  I want to set a tooltip for a specific column in each of of the detail table.  How do I accomplish this?

Thank You,

David.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 03 Feb 2010, 04:45 PM
Hello David,

The easiest way would be to distinguish the table view is by its name. Please try the following approach:
<MasterTableView Name="myMasterTable" ... >

protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
    if (e.Item is GridDataItem && e.Item.OwnerTableView.Name != "myMasterTable")
    {
        GridDataItem gridItem = e.Item as GridDataItem;
        gridItem[columnName].ToolTip = "something";
    }
}

Kind regards,
Daniel
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or