Hello Nilanjan,
Stripping spaces in HTML output is a browser behavior. You can change it if you set
DataFormatString to
"<pre>{0}</pre>" for the specific column (or all columns), either declaratively or programmatically (for programmatic settings, please use the
ColumnCreated event)
ASPX
<telerik:GridBoundColumn DataFormatString="<pre>{0}</pre>" />
C#
protected void RadGrid_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
{
if (e.Column is GridBoundColumn)
{
(e.Column as GridBoundColumn).DataFormatString = "<pre>{0}</pre>";
}
}
The <pre> element has a special font family style by default, but you can change it with CSS:
CSS
pre
{
font:12px arial,sans-serif;
}
Kind regards,
Dimo
the Telerik team