Autowidth on a grid that is wide it cuts off the last part of the grid that shows pages. Autoresize solves this.
Now I want to have some grids on a page that do Autoresize while others I want to use width so I can have 2 side by side.
Autoresize ignores width so all grids are on top of eachother, however autowidth allows for this.
Forgot to show an example of this.
For master grid add either of the two lines below.
$opt["autowidth"] = true; // no change from current view
$opt["autoresize"] = true; // will not allow grids to be side by side
To work with multiple grids and autoresize, a fix will be required.
Edit lib/inc/jqgrid_dist.php and update line 10-11 from code: http://pastebin.com/1gX9KeCb
To limit autowidth, you can make a container div with width:80% or so, and place grid inside that div.
e.g. <div style="width:80%"><?php echo $out?></div>
How useful was this discussion?
Click on a star to rate it!
Average rating / 5. Vote count:
We are sorry that this post was not useful for you!
Let us improve this post!
Thanks for your feedback!