Display multiline text with ellipsis

QuestionsDisplay multiline text with ellipsis
Py asked 5 years ago

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

3 Answers
Abu Ghufran Staff answered 5 years 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.

<style>
.ui-jqgrid tr.jqgrow td
{
vertical-align: top;
white-space: normal !important;
padding:2px 5px;
}
</style>

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
Grid 4 PHP Framework
 
Py answered 5 years 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 5 years ago

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

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

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

13 + 0 =

Login with your Social Id:

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?