Hi
I’ve inserted the grid in a webpage with header and footer. The grid height should be 100% of the <body> section but I can get it. In fact it works in a strange way.
No matters if I set:
$grid[“height”] = “100”;
or:
$grid[“height”] = “400”;
the grid has the same size, but if I set:
$grid[“height”] = “800”;
the grid grows more than the page size. If I set:
$grid[“height”] = “100%”;
The grid is showed about 40% of the body section. No matters if i use 200%, 300%…if remains always in same size.
Any idea?
Hello,
You can refer this demo code: (line 27-34)
https://gist.github.com/gridphp/6532b68c780d2e31f7e526c8a34471a4
It resizes grid on loadComplete event to the height of it’s container div.
Basically, the body tag height is not by default 100% but it increases based on it’s content. If you put grid in some div and set it’s height static or dynamic (as on line 55) then grid should expand as in above code.
Perfect, I’ve used that code plus this:
And all works ok, thks!