Word wrap for one grid only

QuestionsWord wrap for one grid only
Glenn asked 6 years ago

Hi Abu,
If I put the below code in the head section of html. It wraps all grids columns.
I have several grids on a form and only one column in one grid needs to be wrapped.
Is that another way to do this?
<style>
.ui-jqgrid tr.jqgrow td
{
vertical-align: top;
white-space: normal !important;
padding:2px 5px;
}
</style>

3 Answers
Abu Ghufran answered 6 years ago

You can set:

#gbox_list1 tr.jqgrow td
{
vertical-align: top;
white-space: normal !important;
padding:2px 5px;
}

where list1 is grid id.

Glenn answered 6 years ago

Thanks Abu,
That works, except it ignores n for line breaks.
When I hover over the cell the hover value is perfect.
So how do I get the hover layout in the cell?

Abu Ghufran answered 6 years ago

I dont understand what you mean by line break.
Screenshot would help.

Also review the demo > integration > html editor … it was word wrapped cell content for html editor.

Your Answer

14 + 16 =

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?