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 18 days ago
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 18 days ago
70vh = height(?)
18 days ago
RayBen
you can put anything that css accepts, `'300px'`, `'20em'`, `'vh'` (view height)
18 days ago
Omu
Thanks Let Me Try
18 days ago
RayBen
it works very good
18 days ago
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