ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How to manually set Grid height in js on aweload event
Title:
B
I
{code}
?
I would like to manually set the grid height in js, in this case on the `aweload` event handler $('#gid0').on('aweload', function (event, data, requestData) { ... }
Save Changes
Cancel
RayBen
asked at 25 Aug 2024
Answers
B
I
{code}
?
You can set the grid height manually in js like this: var gridOpt = $('#Grid1').data('o'); gridOpt.h = '70vh'; gridOpt.api.lay()
Save Changes
Cancel
Omu
answered at 25 Aug 2024
70vh = height(?)
at 25 Aug 2024
RayBen
you can put anything that css accepts, `'300px'`, `'20em'`, `'vh'` (view height)
at 25 Aug 2024
Omu
Thanks Let Me Try
at 25 Aug 2024
RayBen
it works very good
at 25 Aug 2024
RayBen
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