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

How to set '/n' in the field of grid

1 Answer 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Federico
Top achievements
Rank 1
Federico asked on 02 Nov 2017, 09:55 AM

I would like to set the '/ n' in the response string and display it in the column without using the template.

What should I write in ajax's response?

'/n' doesn't work!

 

 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 06 Nov 2017, 07:10 AM
Hello, Federico,

If the desired result is to show the text on two lines without using the column.template I can suggest using the "<br/>" tag.

This can be achieved by sending the tag as part of the response and setting the encoding to false:

https://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-columns.encoded

https://dojo.telerik.com/aZuvI

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Federico
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or