EasyUI Forum

General Category => Bug Report => Topic started by: Punkerr on October 26, 2012, 10:49:23 AM



Title: Center edatagrid
Post by: Punkerr on October 26, 2012, 10:49:23 AM
Hi!

When I apply the <table> <center> ... </table> </center>, the column headers disappear.
Is this a bug?


Title: Re: Center edatagrid
Post by: stworthy on October 26, 2012, 12:55:04 PM
Please use the standard table structure.
<table><thead>...</thead><tbody>...</tbody></table>


Title: Re: Center edatagrid
Post by: Punkerr on October 26, 2012, 01:34:09 PM
Sorry, the right report is:

When I apply the <center><table>  ... </table> </center>, the names in column headers show in blank.
Is this a bug?


Title: Re: Center edatagrid
Post by: stworthy on October 27, 2012, 06:32:38 AM
To center the datagrid, place the datagrid with fit property set to true in a centered div container.

Code:
<div style="margin:0 auto">
<table class="easyui-datagrid" fit="true">
...</table>
</div>


Title: Re: Center edatagrid
Post by: Punkerr on October 27, 2012, 04:24:40 PM
Great! it works stworthy!