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
two lines of text in column heading
06/04/2009
14:06
Avatar
Jim P
Member
Members
Forum Posts: 102
Member Since:
29/01/2009
sp_UserOfflineSmall Offline

Tony,

I've searched the documentation and can't find the answer to this:

Is it possible to make the column heading two lines of text instead of one?

example: Probem Code

want it to be:

Problem

  Code

(without the big space between the lines)

Thanks,  Jim

07/04/2009
08:18
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Never tested, but try colNames:['Probem <br/>Code',...]

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.

07/04/2009
10:01
Avatar
Jim P
Member
Members
Forum Posts: 102
Member Since:
29/01/2009
sp_UserOfflineSmall Offline

I tried that and it truncates the second word or its wrapped to the second line but the height (currently set to auto) doesn't adjust  so it's invisible.

08/04/2009
08:07
Avatar
birt
Member
Members
Forum Posts: 20
Member Since:
20/11/2008
sp_UserOfflineSmall Offline

Hello,

I'm also very interested in getting this work. I have been testing with several methods but never get it working. I have also read a couple of posts before in this forum regarding the same issue. (Only found this post right now http://www.trirand.com/blog/?p.....38;ret=all ). I can guess there are even more users that migth be interested in this.

I hope there will be a solution to this soon!

Thanks Tony and your team for a great grid!
Keep up the good work!

/T

14/04/2009
01:57
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Here is the solution which works for me. (Little ugly only in basic theme)

Open the grid.css file and correct the following lines:

table.scroll thead tr th {

...

height:18px;

}

to

table.scroll thead tr th {

...

height:auto;

}

table.scroll th div {

...

height:18px;

}

to

table.scroll th div {

...

height:auto;

}

and finally

table.scroll th span {

...

height:18px;

}

to

table.scroll th span {

...

height:auto;

}

Do not forget to set the brake tag in colNames

Enjoy.

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.

05/06/2009
17:08
Avatar
maggie
Member
Members
Forum Posts: 49
Member Since:
17/12/2008
sp_UserOfflineSmall Offline

Hello,

I have a column called "Cases # (Age 0-4)".  I tried to change the css and add break tag in colName. It worked. The column name break into two lines:

Cases #

(Age 0-4)  

On the edit form, the coloumn name also break into two lines. But I want o keep the column name in one line on the edit form. Is that doable?

Thanks,

Maggie

19/08/2009
07:52
Avatar
birt
Member
Members
Forum Posts: 20
Member Since:
20/11/2008
sp_UserOfflineSmall Offline

Tony,

The solution you suggested here above (editing grid.css) worked very well for me. But after upgrading to jqGrid 3.5.2 (and themeroller), I have the same problem again.

Is it still possible to increase the height of the column name row as before, so one can have a line break in the header???

/T

21/08/2009
02:34
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Do the same in ui.jqgrid.css - look section header in the css.

Reagrds

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.

24/08/2009
06:39
Avatar
birt
Member
Members
Forum Posts: 20
Member Since:
20/11/2008
sp_UserOfflineSmall Offline

Thank you,

It works!

/T

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
33 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