Forum
02:39
04/11/2009
IMHO: assuming the options for caption+columnheaders+navGrid are on, the grid option height = 100% should account for them.
Currently it only account for the grid cells.
Likewise setGridHeight should account for them too. Correct?
If not maybe new methods 'totalHeight' & 'setTotalHeight' could be created?
thanks,
Tim
11:06
Moderators
30/10/2007
Hello,
Setting height to 100% is not actually correct, a value of 'auto' is more readable which means that the number of rows should fit in the content. It is little difficult to do this - by example if you set height 50px where a caption, header rows and pager are present - What should I do in this case????? - the total height of these is more than 50px.
Best 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.
18:14
04/11/2009
Hi Tony,
Thanks for the reply.
I don't think anyone would care if the min grid height is limited to the caption + pager (if turned on) + 2 grid rows.
I'm thinking what people need is a method to have the 'totalGrid' fit in 100% of the browsers vertical space. We can already do this for the horizontal space with setGridWidth, but setGridHeight = 100% will always create a double scrollbar (one for the browser and one for the grid). We can't set the browsers overflow-y to hidden when there's a pager at the bottom, but we could if we could be sure the pager would stay in view....
Does that make sense?
Here's a feature request logged by another fellow doing approximately the same thing:
http://www.trirand.com/blog/?p.....ng/#p15057
If you want a demo of my problem please email me (tim @ blackstag.com) and I will point you one I have (I don't want the masses hitting my production site).
Thanks,
Tim
Most Users Ever Online: 715
Currently Online:
51 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