EasyUI Forum
September 14, 2025, 01:46:21 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to set datagrid's PANEL Height to 100% without effecting width ?  (Read 13082 times)
Jonny
Newbie
*
Posts: 38


View Profile Email
« on: October 04, 2015, 09:31:36 AM »

Hello Sir/Madam,

           I am trying to fill a page with about 3-4 datagrid,
Unfortunately I can't achieve by using general way like this:

<table id="dg" class="easyui-datagrid" style="height:300px" url="GETDATA.PHP" fit="true"  >

This will make the datagrid fulfill width and height..
What I need is only auto height....
I want to set the width manually, maybe set each of them about = 300px ~ 400 px

Please help..
Thanks in advanced.

Regards,
JONNY
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 05, 2015, 01:58:37 AM »

You can set '100%' height with fixed width.
Code:
<table id="dg" class="easyui-datagrid" style="width:300px;height:100%" url="GETDATA.PHP">
...
</table>
Logged
Jonny
Newbie
*
Posts: 38


View Profile Email
« Reply #2 on: October 05, 2015, 02:21:01 AM »

    Thank you very much Sir...

Problem solved by removing --> fit="true" and adding style="width:300px;height:100%"
 
Very Glad when receiving response from you.. that means problem cleared... Cheesy


Regards,
Jonny
« Last Edit: October 05, 2015, 02:25:05 AM by Jonny » 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!