EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 16, 2025, 04:04:06 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Can I make the grid have dynamic height depending on the number of records in it
Pages: [
1
]
« previous
next »
Print
Author
Topic: Can I make the grid have dynamic height depending on the number of records in it (Read 9035 times)
bakerchen
Newbie
Posts: 9
Can I make the grid have dynamic height depending on the number of records in it
«
on:
April 22, 2013, 08:13:41 AM »
there is a empty column(should be preserved for scrollbar) if I set fit=true in a datagrid, it looks very weired.
Can I make the grid have dynamic height depending on the number of records in it, instead of a fixed height?
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Can I make the grid have dynamic height depending on the number of records in it
«
Reply #1 on:
April 22, 2013, 09:13:07 PM »
Try setting fit to false and height to auto.
Code:
$('#dg').datagrid({
width:600,
height:'auto',
fit:false
});
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...