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

Setting Tooltip in 'GridCheckBoxCellElement'

2 Answers 121 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Moe
Top achievements
Rank 1
Moe asked on 04 Feb 2014, 11:00 PM
I would like to set a tooltip for and individual cell  of type 'GridCheckBoxCellElement'. I tried the following code but, unfortunately I did not have a way to determine the what cell (column/Row) index the sender came from. Any advice is appreciated.


void radGridViewAssignProject_ToolTipTextNeeded(object sender, ToolTipTextNeededEventArgs e){  ////GridDataCellElement cell = sender as GridDataCellElement; if (sender is RadCheckmark)
 {  e.ToolTipText = "E-Form/Attachment files will be added to this project";  }
 else if (sender is GridHyperlinkCellContentElement) {
  e.ToolTipText = "Mapp project indexes to e-form controls.";  }
 else if (sender is RadButtonElement) {
  e.ToolTipText = "Remove project from this e-form";  }
 else if (sender is GridDataCellElement) {
 }
 else
 {
  e.ToolTipText = "";  }
}

2 Answers, 1 is accepted

Sort by
0
Mr
Top achievements
Rank 1
answered on 05 Feb 2014, 05:58 AM
hi

If e.CellElement.ColumnIndex = 1 Then
            e.CellElement.ToolTipText = "This is a text column"
End if
0
George
Telerik team
answered on 07 Feb 2014, 07:18 AM
Hi,

It seems that you have found a resolution for your case.

Should you need further assistance, do not hesitate to contact us back.

Regards,
George
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Tags
GridView
Asked by
Moe
Top achievements
Rank 1
Answers by
Mr
Top achievements
Rank 1
George
Telerik team
Share this question
or