Forum


19:18

20/08/2011

yes there is… i will post it.
however, you will need to tweak it to fit your needs. My site is buiilt using jquery tabs with jqgrid's defined in each tab content area. It took me a while, but my site and the contained jqgrids now beheave properly (for the most part) within the browser window. my method is not perfect but works pretty good.
the following is a subset of the jquery tab structure that defines how my site looks. it also is used by the width & height management functions i created to manage the resizing of the site within the browser window…
Here is what the site looks like…
here is the site beheaving properly within a resized browser window.
[Image Can Not Be Found]
here is the code that manages resizing the width and height within the browser window…
i hope this helps.
20:22

03/10/2012

I see.
When we set the height via $('#grid').setGridHeight(someHeight) the final height of the grid is actually:
someHeight + heightOfGridHeader + heightOfGridPager ;
Where heightOfGridHeader+heightOfGridPager is usually around 50 pixels.
I would consider changing the behabior of the setGridHeight method so it affects the whole grid and not just the data rows. It's more intuitive that way.
Many thanks.
Most Users Ever Online: 715
Currently Online:
37 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