sandiyap / jquery-easyui

Automatically exported from code.google.com/p/jquery-easyui
GNU General Public License v3.0
0 stars 0 forks source link

How to fill the height of datagrid #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using easyui in my project.
I have a problem that datagrid can not fill the height of it's container.
When I use fit=true, it brings to a too height grid. Because I have some other 
custom elements in the container like toolbar,searchbar,statubar etc. 
So I need to resize the grid by the height I compute when it renders.
I overrided the $.fn.datagrids.defaults.view's onAfterRender, but it was called 
every times when the grid rendered or refreshed.
Is there any way to insert my code in somewhere and it can can be called only 
once where the grid will be created or rendered.
Thank you!

Original issue reported on code.google.com by tsing0h...@gmail.com on 16 Sep 2013 at 2:20

GoogleCodeExporter commented 9 years ago
v1.2.5

Original comment by tsing0h...@gmail.com on 16 Sep 2013 at 2:26

GoogleCodeExporter commented 9 years ago
I think I have resolved.

Original comment by tsing0h...@gmail.com on 16 Sep 2013 at 3:00