This is a migrated thread and some comments may be shown as answers.

White space as first character in the grid

1 Answer 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pablo
Top achievements
Rank 1
Pablo asked on 20 Aug 2012, 03:35 PM
Hi,

I'm using a telerik grid, and i found that when trying to display a string which first character is a white space, the telerik grid trims it, although in the markup, the white space is there.

Any solutions to this issue?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 21 Aug 2012, 06:44 AM
Hello Pablo,

This behavior is according to web standards and is not related to the Grid. A plain HTML table will behave the same way.

You should replace the space with a   in the datasource, or prepend it client side.

All the best,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Pablo
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or