Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Word wrap support
28/07/2009
08:37
Avatar
atul
Member
Members
Forum Posts: 6
Member Since:
05/06/2009
sp_UserOfflineSmall Offline

Hi,

    I am having requiremnent where i need word wrap support in the Grid. Can jqGrid support word wrap ?

    If yes, then example will be helpful

Thanks

Atul

28/07/2009
09:10
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Open the ui-jqgrid.css and find this

.ui-jqgrid tr.jqgrow td {font-weight: normal; overflow: hidden; text-align:left; white-space: pre;...}

Also you can overwrite this option after you load the css and define

<style>

.ui-jqgrid tr.jqgrow td {white-space: normal}

</style>

For a particular grid ... - let's this be a task for you. 🙂

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

29/07/2009
08:12
Avatar
atul
Member
Members
Forum Posts: 6
Member Since:
05/06/2009
sp_UserOfflineSmall Offline

I tried this setting and found that wordwrap is not working consistantly.

Here is link to my sample grid, you can do view source to see the code

http://punesoftwaregroup.com/t.....endra.html

I see following issues

1) Firefox 3.0.12 first 3 columns are not word-wrapped,

2) In IE 7 NO column is wordwrapped

3) In IE 8 NO column is wordwrapped and even first 2 column headers are not shown properly.

4) We ovserved that if column has space then wordwraps works may be?

Any idea why is it miss-behaving. Any know issue/possible fix ?

Please help.

29/07/2009
10:02
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

In your example you should add DOCTYPE declaration

IE will not work at all in your case - it is in quircks mode

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

16/10/2012
09:23
Avatar
aravind
New Member
Members
Forum Posts: 2
Member Since:
16/10/2012
sp_UserOfflineSmall Offline

Does this work with the export options? like pdf ,

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
26 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information