EasyUI Forum
April 19, 2024, 09:05:20 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Datagrid auto height  (Read 4722 times)
sectioni
Jr. Member
**
Posts: 67


View Profile
« 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?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: March 26, 2020, 08:34:27 PM »

Create the datagrid component with 'height' set to 'auto'.
Code:
$('#dg').datagrid({
  width: ...,
  height: 'auto'
});
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!