Forum
Topic RSS
09:10
26/05/2009
OfflineHello people,
I need to fix both the height of the grid and the height of each single row. After giving a look on the forum, I found the following:
afterInsertRow: function(rowid, aData) { $('#'+rowid).css({height:15}); }
It works, but it has a difference of behaviour between FF3 and MSIE7 when the number of rows is not enough to cover the whole height of the grid; on FF3, the height of each row remains 15px and a blank space is added after the last row to fill the remaining height (and this is the behaviour I need to get). On MSIE7, instead, each row is stretched to fill all available space.
I verified that the function is being called, I tried to set maxheight too, but witout success. Is there a way to fix via CSS and avoiding the use of setCell?
Thank you in advance.
Lelio
PS: I used jqGrid 3.4 and jQuery 1.3.2
04:30
Moderators
30/10/2007
OfflineHello,
Open the grid.css and see this settings
table.scroll tbody td {
padding: 2px;
text-align: left;
border-bottom: 1px solid #D4D0C8;
border-left: 1px solid #D4D0C8;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
height : auto;
}
Also you can set the hight what you want.
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.
08:30
07/07/2009
OfflineHello.
I have a problem with row height too.
In IE7 row height expands too fit the content.
In FF row height not expands independent of the content Always have the same height.
I want row height not expandas and always have the same height.
I try:
afterInsertRow: function(rowid, aData) { $('#'+rowid).css({height:15}); }
But not run OK with large contents in the cell.
What Can I do?
Thank's.
12:27
07/07/2009
OfflineHello.
Y resolve it adding this line in ui.jqgrid.css:
I get idea from here:
http://www.tufuncion.com/hacks-css
Regards.
Most Users Ever Online: 994
Currently Online:
34 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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66
Log In
Home