Is it possible to apply tooltips to grid content. For example to header cells - to provide an explanation of data in the column, or even in data cells so additional information can be presented against cells where needed?
Thanks
Indy
Thanks
Indy
5 Answers, 1 is accepted
0
Princy
Top achievements
Rank 2
answered on 24 Apr 2008, 05:55 AM
Hi Stephen,
I hope the following help article will guide you.
Adding tooltips for grid items
Princy.
I hope the following help article will guide you.
Adding tooltips for grid items
Princy.
0
Stephen
Top achievements
Rank 1
answered on 24 Apr 2008, 09:15 AM
Great thanks!!
0
Stephen
Top achievements
Rank 1
answered on 28 Apr 2008, 11:43 AM
Hi,
This sample shows how to apply a key value as the tooltip. What if I just want to present the cell content itself as a tooltip?
Thanks in advance
This sample shows how to apply a key value as the tooltip. What if I just want to present the cell content itself as a tooltip?
Thanks in advance
0
Stephen
Top achievements
Rank 1
answered on 28 Apr 2008, 11:58 AM
Hi,
I have sort of worked this out, but I had to move the logic into ItemDataBound rather than ItemCreated. Does ItemCreated fire before data binding to the cell has occured?
I have sort of worked this out, but I had to move the logic into ItemDataBound rather than ItemCreated. Does ItemCreated fire before data binding to the cell has occured?
Protected Sub grdComments_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.WebControls.GridItemEventArgs)
If (TypeOf e.Item Is GridDataItem) Then
Dim gridItem As GridDataItem = CType(e.Item, GridDataItem)
For Each column As GridColumn In CType(sender, RadGrid).MasterTableView.RenderColumns
If (TypeOf column Is GridBoundColumn) Then
'this line will show a tooltip based on the Comment and Outcome field
If column.UniqueName = "COMMENTARY" Then
gridItem(column.UniqueName).ToolTip = gridItem(
"COMMENTARY").Text
ElseIf column.UniqueName = "OUTCOME" Then
gridItem(column.UniqueName).ToolTip = gridItem(
"OUTCOME").Text
End If
End If
Next
End If
End Sub
0
Shinu
Top achievements
Rank 2
answered on 28 Apr 2008, 12:18 PM
Hi Stephen,
You can go through the KB article that explains the difference between the ItemDataBound and ItemCreated event handlers.
http://www.telerik.com/support/kb/article/b454K-kgb-b454T-bmg-b454c-bmk.aspx
Thanks,
Shinu
You can go through the KB article that explains the difference between the ItemDataBound and ItemCreated event handlers.
http://www.telerik.com/support/kb/article/b454K-kgb-b454T-bmg-b454c-bmk.aspx
Thanks,
Shinu