Display multiline text with ellipsis

QuestionsDisplay multiline text with ellipsis
Py asked 3 months ago

Hello, how to display a multi line text with ellipsis ?

3 Answers
Abu Ghufran Staff answered 3 months ago

You can refer this faq for multiline content in cell.

Q) How to do word-wrap (fit) content in grid cells?

Update following css in page to change cell wrapping.

.ui-jqgrid tr.jqgrow td
vertical-align: top;
white-space: normal !important;
padding:2px 5px;

Second, you can use this demo for readmore plugin.

Demo: https://www.phpgrid.org/demo/demos/integrations/readmore.php

Code: https://www.phpgrid.org/demo/demos/integrations/readmore.phps

Abu Ghufran - Dev Team
PHP Grid Framework
Py answered 3 months ago

This code works if there is only one line.

But if there are break returns (\r, \n) this code don’t work.

Is there a solution ?

Abu Ghufran Staff answered 2 months ago

I am unable to understand or generate this issue. See https://i.imgur.com/ue5O8k9.gifv


Abu Ghufran - Dev Team
PHP Grid Framework
Your Answer

19 + 4 =

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!