EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: sectioni on March 23, 2020, 04:47:57 AM



Title: Datagrid auto height
Post by: sectioni on March 23, 2020, 04:47:57 AM
How can I make the datagrid's height extend/shrink according to the number of rows per page so there will never be a scrollbar?


Title: Re: Datagrid auto height
Post by: jarry on March 26, 2020, 08:34:27 PM
Create the datagrid component with 'height' set to 'auto'.
Code:
$('#dg').datagrid({
  width: ...,
  height: 'auto'
});