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

[Solved] Spaces in text in data that is bind to kendo grid

2 Answers 545 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sagar
Top achievements
Rank 1
Sagar asked on 20 Nov 2014, 04:40 PM
Hi,

We are using kengo grid and the data that we bind to the grid has good amount spaces in it. Example is, say we have a column named "Description" and sample data is:

"This is               a sample      description            text having            lot of spaces between words".

So when this data is bound to grid, we don't see these many spaces in the column. But we can see these spaces in the tool tip of the column when the user hovers the mouse on the grid cell..

Can you please let us know if this is the inherent behavior of the grid or any workaround with this? I think it would not make much sense to display these many spaces between words in the grid but wanted to know on this since we have similar situation at our end.

Thanks,
Sagar

2 Answers, 1 is accepted

Sort by
0
Sagar
Top achievements
Rank 1
answered on 21 Nov 2014, 12:24 PM
Hi,

Any update on this? We have been waiting on this since a while. Appreciate your quick response.

thanks!
0
Kiril Nikolov
Telerik team
answered on 24 Nov 2014, 11:36 AM
Hello Sagar,

This is how html works. You can use <pre> tag that will keep the white spaces in the column template. Here is an example:

http://dojo.telerik.com/EPOrA

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