EasyUI Forum
May 03, 2024, 02:59:05 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: Center edatagrid  (Read 13533 times)
Punkerr
Newbie
*
Posts: 37


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


View Profile Email
« Reply #1 on: October 26, 2012, 12:55:04 PM »

Please use the standard table structure.
<table><thead>...</thead><tbody>...</tbody></table>
Logged
Punkerr
Newbie
*
Posts: 37


View Profile
« Reply #2 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?
« Last Edit: October 26, 2012, 03:23:13 PM by Punkerr » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 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>
Logged
Punkerr
Newbie
*
Posts: 37


View Profile
« Reply #4 on: October 27, 2012, 04:24:40 PM »

Great! it works stworthy!
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!