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

Tooltip Per RadGrid Row (example http://demos.telerik.com/aspnet-ajax/ToolTip/Examples/TargetControlsAndAjax/DefaultCS.aspx)

1 Answer 221 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 18 Dec 2008, 11:02 PM
I have matched this almost exactly,  2 issues is my ID or primary ID I need to find the record is PAR_PARTID (not visible in the grid) and the field to attach the popup is R1_PartNumber (unique id).

my code other than using the PAR_PartID instead is exactly the same as yours, but I get the following error.

Unable to cast object of type 'System.Data.Common.DataRecordInternal' totype 'System.Data.DataRowView'.

Description:An unhandled exception occurred during the execution of the current webrequest. Please review the stack trace for more information about the error andwhere it originated in the code.

Exception Details:System.InvalidCastException: Unable to cast object of type'System.Data.Common.DataRecordInternal' to type'System.Data.DataRowView'.

Source Error:

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:                }
            
            
Any help is appreciated
            
andy

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 20 Dec 2008, 03:46 PM
Hello Andy,

For your convenience I created working example (based on the demo). Please find it attached to this post.

I hope this helps.

Best regards,
Daniel
the Telerik team

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