Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
we can set jqgrid height using struts2 tag like this



< sjg:grid
.
.
.
.
height="500px"
.
.
.
>



I need to set the height dynamically by calculating the window size.I tried like this

var height=window.innerHeight;
$("#gridId").jqGrid("setGridHeight",height);



The problem is that when the number of data changes inside the grid the height is also varying, can't we fix the height as struts2 tag does?...by passing data dynamically
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900