EasyUI Forum
May 10, 2024, 07:15:26 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: DataGrid not showing data when container div starts as display:none  (Read 7110 times)
2plus2
Jr. Member
**
Posts: 75


View Profile
« 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?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: August 06, 2014, 07:50:49 PM »

Please try to call 'resize' method if the datagrid has wrong size.
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!