EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: 2plus2 on August 06, 2014, 12:11:19 PM



Title: DataGrid not showing data when container div starts as display:none
Post by: 2plus2 on August 06, 2014, 12:11:19 PM
Howdy...

We have a series of data grids that start out with their container divs hidden. These divs are not part of the data grid itself, e.g.

Code:
<div id="divDGOne" style="display:none;">
    <table id="dgOne" class="easyui-datagrid">
    ...
    </table>
</div>

The load event works fine, but when we toggle the display for the container div the data grid doesn't show the loaded data and the pagination / navigation shows at the "top" of the data grid as if the rows are collapsed. Once you click on the page next button, the data grid shows correctly. See attached images.

Any idea why the data grid is hiding to start with?


Title: Re: DataGrid not showing data when container div starts as display:none
Post by: stworthy on August 06, 2014, 07:50:49 PM
Please try to call 'resize' method if the datagrid has wrong size.