EasyUI Forum

General Category => General Discussion => Topic started by: Jonny on October 04, 2015, 09:31:36 AM



Title: How to set datagrid's PANEL Height to 100% without effecting width ?
Post by: Jonny 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


Title: Re: How to set datagrid's PANEL Height to 100% without effecting width ?
Post by: stworthy 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>


Title: Re: How to set datagrid's PANEL Height to 100% without effecting width ?
Post by: Jonny 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... :D


Regards,
Jonny