Display multiline text with ellipsis

QuestionsDisplay multiline text with ellipsis
Py asked 1 week ago

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

3 Answers
Abu Ghufran Staff answered 1 week 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 6 days 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 1 day 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

4 + 17 =

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:

As you found this post useful...

Follow us on social media!

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

Let us improve this post!