Hey , I'm looping through a heairarchichal rad grid with 1 lkinkbutton in each section
I'm checking if the length is over a ceratin number and if it is, shorten it and add a tooltip....fairly standard stuff
for some reason , the code only hits every 2nd row in each of the grids !
any ideas?
I'm checking if the length is over a ceratin number and if it is, shorten it and add a tooltip....fairly standard stuff
| Private Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound |
| If e.Item.ItemType = GridItemType.Item Then |
| Dim linkbutton1 As LinkButton = e.Item.FindControl("linkbutton1") |
| If linkbutton1 Is Nothing Then |
| Else |
| If linkbutton1.Text.Length > 30 Then |
| linkbutton1linkbutton1.ToolTip = linkbutton1.Text |
| linkbutton1linkbutton1.Text = linkbutton1.Text.Substring(0, 40) + "..." |
| End If |
| End If |
| Dim linkbutton2 As LinkButton = e.Item.FindControl("linkbutton2") |
| If linkbutton2 Is Nothing Then |
| Else |
| If linkbutton2.Text.Length > 30 Then |
| linkbutton2linkbutton2.ToolTip = linkbutton2.Text |
| linkbutton2linkbutton2.Text = linkbutton2.Text.Substring(0, 40) + "..." |
| End If |
| End If |
| Dim linkbutton3 As LinkButton = e.Item.FindControl("linkbutton3") |
| If linkbutton3 Is Nothing Then |
| Else |
| If linkbutton3.Text.Length > 30 Then |
| linkbutton3linkbutton3.ToolTip = linkbutton3.Text |
| linkbutton3linkbutton3.Text = linkbutton3.Text.Substring(0, 40) + "..." |
| End If |
| End If |
| End If |
| End Sub |
for some reason , the code only hits every 2nd row in each of the grids !
any ideas?