Forum


23:17

10/10/2009

Hello,
I am using a JQgrid with no paging mechanism where all the data is shown at once. I can't use the 'auto' value for the grid height because it will stretch the grid vertically too much if the number of rows are large. I need to set the grid's height to a value so it can display, lets say, 50 rows and then the rest of the rows can be seen by using the scrollbar. Please note that I need to bring all the rows to the client (rowNum: -1).
Here's my problem.
Setting the grid height to 'auto' is not possible due to the above issue. If I use a number, say 100, the grid always uses that space even though there are no rows or very few rows. Due to this, there is a lot of extra space which doesn't look nice. What I want is something like: maxHeight + auto combination. The grid should resize itself vertically but not beyond the maxHeight.
I am using the version 3.5.3.
Any ideas?
Thanks,
Rushi
13:02

Moderators
30/10/2007

Hello,
Sorry do not understand. Any picture or something elese to understand better the problem
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:29

10/10/2009

Hi Tony,
I am not able to add any attachments to my message..The webpage that I need to show you is running locally and hence I cannot give you the URL. I tried to insert an image using the menu here but it didn't work. How do I insert pictures or add attachments to the forum messages?
Thanks,
Rushi
14:57

Moderators
30/10/2007

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:29

Moderators
30/10/2007

Hello,
Set the initial height to auto, and in loadComplete determine the number of records using getGridParam. If the number of records is
more than desired value set the fixedHeight here using setGridHeight.
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.
Most Users Ever Online: 715
Currently Online:
49 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