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

text wrap issue

3 Answers 601 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vincent
Top achievements
Rank 1
Iron
Vincent asked on 13 Jan 2019, 03:43 PM

1.when i change the Brower width, the text auto wrap and the row height grow. I want to set the text not wrap(see attachment), how can I do that.

2.I want to set text wrap in edit mode, how can I do that?

 

3 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 16 Jan 2019, 12:40 PM
Hi Vincent,

In order to force the text in a Grid column not to be wrapped I would recommend using the approach from the article below.


When the respective cell is in edit mode a textbox will be displayed and the entire text of the cell will be available in it.


Regards,
Viktor Tachev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Vincent
Top achievements
Rank 1
Iron
answered on 17 Jan 2019, 09:58 AM
thank you for your answer. the text no wrap issue is worked. but how can make text wrap in edit mode. in edit mode. the editor is a input. it can not set multi-line or text wrap via CSS. How can I do that.
0
Viktor Tachev
Telerik team
answered on 22 Jan 2019, 07:52 AM
Hello Vincent,

By default when editing a cell in the Grid an input element will be displayed. By design the input elements support single line text only. If you would like to show the text on multiple lines you can specify a custom editor for the column and use a textarea.

Check out the example below that illustrates how you can define a custom editor in the Grid.



Regards,
Viktor Tachev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Vincent
Top achievements
Rank 1
Iron
Answers by
Viktor Tachev
Telerik team
Vincent
Top achievements
Rank 1
Iron
Share this question
or