I am trying to prevent wrapping of too long columns to the second line.
I was able to do it by cutting size of the
Protected Sub AllGrids_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs)
Dim intMaxLength As Integer = 60
Dim grd As RadGrid = CType(sender, RadGrid)
If (TypeOf e.Item Is GridDataItem) Then
Dim gridItem As GridDataItem = CType(e.Item, GridDataItem)
gridItem("Description").ToolTip = gridItem("Description").Text
If gridItem("Description").Text.Length > intMaxLength Then
gridItem("Description").Text = gridItem("Description").Text.Substring(0, intMaxLength) + "..."
End If
End If
End Sub
In addition i have to do some manipulation on export to export full size field.
There are gotta be a better way though, right?
I was able to do it by cutting size of the
Protected Sub AllGrids_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs)
Dim intMaxLength As Integer = 60
Dim grd As RadGrid = CType(sender, RadGrid)
If (TypeOf e.Item Is GridDataItem) Then
Dim gridItem As GridDataItem = CType(e.Item, GridDataItem)
gridItem("Description").ToolTip = gridItem("Description").Text
If gridItem("Description").Text.Length > intMaxLength Then
gridItem("Description").Text = gridItem("Description").Text.Substring(0, intMaxLength) + "..."
End If
End If
End Sub
In addition i have to do some manipulation on export to export full size field.
There are gotta be a better way though, right?