EasyUI Forum
April 23, 2024, 02:45:45 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Table inside DIV not work  (Read 3264 times)
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« on: June 23, 2017, 06:03:40 AM »

Hello
I have this code:

Code:
<div>
    <table id="dg" data-options="header:'#hh',fit:true,fitColumns:true,scrollbarSize:0"> 
        <thead> 
            <tr> 
                <th data-options="field:'itemid',width:80">Item ID</th>                             
                <th data-options="field:'productid',width:100">Product</th> 
            </tr>
        </thead> 
    </table>
    <div id="hh">
    <div class="m-toolbar">
    <div class="m-title">Basic DataGrid</div>
    </div>
    </div>
<div>

and table is not displayed.
If I remove DIV tag then it works.
How to display table inside DIV?
Thank you.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: June 23, 2017, 06:42:48 AM »

Try to call 'resize' method if the datagrid doesn't display properly.
Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #2 on: June 23, 2017, 11:40:11 AM »

It looks like it is in conflict with other CSS using "table" ...
What I try to do is responsive app where I need mobile sidebar and table component (I managed table from your Mobile component + some other code you previously sent for authohide columns .. Smiley
Now I need to see how to continue because today's requests are some "all in one" aplications, usable on mobile and desktop..
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!