ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Grid - Full Height
Title:
B
I
{code}
?
I have a grid inside a 100% div. how can you set the grid to 100% height? Now when I reduce the window the vertical scroll bar of the div is shown and not that of the grid
Save Changes
Cancel
Meccanica Rossi
asked at 11 Jun 2018
Answers
B
I
{code}
?
you can do this using js, you have to handle the resize event, and any other event that might change the layout in your application, and modify the height of the grid manually. In `awem.js` there is a function `awem.setgh($grid, newh)` which you can use to set the grid height. here's an example: $(window).on('resize', function(){ var h = $('#mydivId').height(); awem.setgh(h); });
Save Changes
Cancel
Omu
answered at 12 Jun 2018
it would be nice that in the next version there would be .Height(0) <- means 100%, directly in the grid
at 12 Jun 2018
Meccanica Rossi
there is `.Height(0)` already, and it makes the grid take as much height as it needs without having a vertical scrollbar; the current css capabilities don't allow for what you describe to work out of the box, so you need to use js
at 12 Jun 2018
Omu
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK