Forum


04:21

Moderators
30/10/2007

Please set height this way
height: "100%"
width can not be set as precentage - refer to docs
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.
11:15

17/08/2008

Tony, but why? Why can't width be set in %?
When I change the width of a column I can clearly see that the table is resizing within a div. Couldn't
a) this wrapper div just be set to 100% width OR
b) the table be put into the page without this div?
I have tried setting width of the wrapper div to 100%, but it's not working, probably because some JS overrides it at runtime.
11:40

Moderators
30/10/2007

It can be. Use this hack before calling jqGrid.
<table id="mygrid" class="scroll"></table>
JS code:
jQuery("#mygrid").width("99%");
var w = jQuery("#mygrid").width();
jQuery("#mygrid").jqGrid({
...
width: w
...
});
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.
11:59

Moderators
30/10/2007

Yes it can't be autoresized, but I think in this direction
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.
12:07

17/08/2008

So is there any other way to make it resizable other than reloading the entire form on every width change?
Basically I want a full-window popup form that would always fill the entire screen.
If not, I will delve into the jqGrid code and try to add this myself. That's why I was wondering how come you haven't done it already: are there any problems that are preventing you from just setting the wrapper to percentage width, or you just haven't gotten around to it yet?
12:22

Moderators
30/10/2007

Hello,
Currently I'm little busy with a project and do not have enougth time to do this. If you help it will be great.
There are other modules that should be tested an published. These modules make a great step forward, but...
Thank you
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:
72 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