RadToolTipManager, RadGrid & GridImageColumn

2 posts, 0 answers
  1. Chip Pace
    Chip Pace avatar
    1 posts
    Member since:
    Jan 2010

    Posted 08 Mar 2010 Link to this post

    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

  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 11 Mar 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top