How to change grid height dynamically, when page it is loaded

I am using
<ejs-grid ID="Grid" height="300px">

How to change height from javascript?

1 Reply 1 reply marked as answer

RS Rajapandiyan Settu Syncfusion Team June 2, 2020 06:22 AM UTC

 
Greetings from syncfusion support. 
 
Query : How to change height from javascript? 
 
By using below code you can change the grid height by javascript. 
 
 
// get the grid element instances 
var grid = document.getElementById('Grid').ej2_instances[0]; 
// change the grid height 
grid.height = '400'; 
 
 
 
Please get back to us if you need further assistance on this. 
 
Regards, 
Rajapandiyan S 


Marked as answer
Loader.
Up arrow icon