I'm currently using the following to prevent the data in the grid from wrapping -
This works great until I try to export the grid using ExportToCSV().
I get the "<nobr>1</nobr>" in the exported file. Is a way around this? The ExportToWord and ExportToExcel seem to already ignore the tags.
current output:
| Protected Sub RadGrid1_ColumnCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridColumnCreatedEventArgs) Handles RadGrid1.ColumnCreated |
| 'prevent grid details from wrapping |
| If (TypeOf e.Column Is Telerik.Web.UI.GridBoundColumn) Then |
| CType(e.Column, Telerik.Web.UI.GridBoundColumn).DataFormatString = "<nobr>{0}</nobr>" |
| End If |
| End Sub |
This works great until I try to export the grid using ExportToCSV().
| Protected Sub lnkBtnCSV_Click(ByVal sender As Object, ByVal e As System.EventArgs) |
| RadGrid1.ExportSettings.ExportOnlyData = True |
| RadGrid1.ExportSettings.IgnorePaging = True |
| RadGrid1.ExportSettings.OpenInNewWindow = True |
| RadGrid1.MasterTableView.ExportToCSV() |
| End Sub |
I get the "<nobr>1</nobr>" in the exported file. Is a way around this? The ExportToWord and ExportToExcel seem to already ignore the tags.
current output:
| "CallID","CallNumber","CallType" |
| "<nobr>1</nobr>","<nobr>1</nobr>","<nobr>Voice</nobr>" |
| Want it to be this: |
| "CallID","CallNumber","CallType" |
| "1","1","Voice" |