How to wrap text in a JQGrid column ?

1,354 views
Skip to first unread message

Cesar Lopez

unread,
Jul 31, 2012, 12:39:28 PM7/31/12
to struts2-jquery
Hi!

I have a text so long in description column of mi JQGrid and I need
to wrap this text.

Somebody knows how to do that?

Regards

Alexandre Bizeau

unread,
Jul 31, 2012, 1:13:04 PM7/31/12
to struts2...@googlegroups.com
Hello,

What you want to do ? Like when over 100 char add the first 100 char + "..." and on mouse over the column you want a tooltips that show complete text ?

When you say wrap, I don't really understand. What you need to do ?

Alex

2012/7/31 Cesar Lopez <cesar....@gmail.com>

--
You received this message because you are subscribed to the Google Groups "struts2-jquery" group.
To post to this group, send email to struts2...@googlegroups.com.
To unsubscribe from this group, send email to struts2-jquer...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Cesar Lopez

unread,
Aug 9, 2012, 11:14:12 AM8/9/12
to struts2-jquery
Hi Alexandre!

I'm sorry reply you so late I was sick. I wanted wrap text like
function in MO Excel. for example, if I change my cell width my text
will adapt to its and if will be necesarily my text put in a second or
thrith line.

I solved this problem add a CSS style in each column that i need
wrapped text

this is css class:

.wrapColumnText
{
white-space: normal !important;
height:auto;
vertical-align:text-top;
}


regards!!!


On 31 jul, 12:13, Alexandre Bizeau <alexandrebiz...@gmail.com> wrote:
> Hello,
>
> What you want to do ? Like when over 100 char add the first 100 char +
> "..." and on mouse over the column you want a tooltips that show complete
> text ?
>
> When you say wrap, I don't really understand. What you need to do ?
>
> Alex
>
> 2012/7/31 Cesar Lopez <cesar.lop...@gmail.com>

Alexandre Bizeau

unread,
Aug 10, 2012, 8:18:16 AM8/10/12
to struts2...@googlegroups.com
Good ! I had something like that too.

Have a nice day

Alex

2012/8/9 Cesar Lopez <cesar....@gmail.com>
Reply all
Reply to author
Forward
0 new messages