EasyUI Forum
April 25, 2024, 05:57: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 dynamic height  (Read 6050 times)
sectioni
Jr. Member
**
Posts: 67


View Profile
« on: November 27, 2017, 08:01:19 AM »

https://jsfiddle.net/sectioni/d9t6nt8j/8/

Hello,

I would like the height of my datagrid to be:

1. If it has a lot of rows (like in the example) - it should be the height of it's container's 'max-height' css value
2. If it has a few rows - it should be the height of it's container's 'min-height' css value

In my example, I have set 'fit' to 'false' and it's not limiting itself to 'max-height'.
If I set it to 'true', it will set the height to the 'min-height' value which is not what I want.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: November 27, 2017, 06:50:21 PM »

Just set the 'minHeight' and 'maxHeight' properties for the datagrid component.

https://jsfiddle.net/d9t6nt8j/9/
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!