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

Tooltip on Grid Assignment Problem.

1 Answer 47 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Andy Stapleton
Top achievements
Rank 1
Andy Stapleton asked on 22 Dec 2008, 02:08 PM
Followed the example exactly. but gettging an error still

Line 452:                if (!object.Equals(this.RadToolTipManager1, null))Line 453:                { Line 454:                    DataRowView currentRow = (DataRowView)e.Item.DataItem;Line 455:                    this.RadToolTipManager1.TargetControls.Add(target.ClientID, currentRow.Row["PAR_PartID"].ToString(), true);Line 456:                }
            
            
From the item databound method of 
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)    {        if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)        {            Control target = e.Item.FindControl("targetControl");            if (!object.Equals(target, null))            {                if (!object.Equals(this.RadToolTipManager1, null))                {                     DataRowView currentRow = (DataRowView)e.Item.DataItem;                    this.RadToolTipManager1.TargetControls.Add(target.ClientID, currentRow.Row["PAR_PartID"].ToString(), true);                }            }        }
            
any help is greatly appreciated.
            

1 Answer, 1 is accepted

Sort by
0
Accepted
Svetlina Anati
Telerik team
answered on 23 Dec 2008, 04:02 PM
Hi Andy,

The problem is not related to RadControls but to general ASP.NET knowledge and databindings. I am not able to tell you the exact problem because on my side the demo is working fine and I do not have information about your database and dtabindings but I found the following links for you and I believe that they will be helpful:

http://forums.asp.net/t/1187140.aspx
http://www.codeverge.net/item.aspx?item=576978


Greetings,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ToolTip
Asked by
Andy Stapleton
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or