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

Wanted: 1 column only showing part of string

1 Answer 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Maurice
Top achievements
Rank 1
Veteran
Maurice asked on 01 Feb 2017, 01:03 PM

Hi,

I have a grid with a remarks column in which I want to be able to edit the complete multiline datafield. I have this working with 

[DataType(DataType.MultilineText)]

 

But I only want to show 3 lines and not the complete text. If I go into edit mode the complete text should be visible of course

A nice to have would be if it is dynamic, so if I change the size of the column the text also changes. 

I have attached two pictures with what I want.

 

Maurice

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 03 Feb 2017, 09:38 AM
Hi Maurice,

If you would like to show ellipsis when there is a long text in the Grid you can use the approach suggested in the following thread.


As for showing the ellipsis with multi-line text, note that such feature is not available in HTML our ot the box. Thus, I would recommend to keep the text only on one line and add couple of CSS lines to show ellipsis.


Regards,
Viktor Tachev
Telerik by Progress
Try our brand new, jQuery-free Angular 2 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
Maurice
Top achievements
Rank 1
Veteran
Answers by
Viktor Tachev
Telerik team
Share this question
or