Title: Set Height of datagrid to 100% Post by: MSAG on March 15, 2022, 05:00:17 AM How can Set Height of datagrid to 100%
this code not work <body style="height:100%"> <h2>Basic DataGrid</h2> <p>The DataGrid is created from markup, no JavaScript code needed.</p> <div style="margin:20px 0;"></div> <table class="easyui-datagrid" title="Basic DataGrid" style="width:700px;height:100%" data-options="singleSelect:true,collapsible:true,url:'datagrid_data1.json',method:'get'"> <thead> <tr> <th data-options="field:'itemid',width:80">Item ID</th> <th data-options="field:'productid',width:100">Product</th> <th data-options="field:'listprice',width:80,align:'right'">List Price</th> <th data-options="field:'unitcost',width:80,align:'right'">Unit Cost</th> <th data-options="field:'attr1',width:250">Attribute</th> <th data-options="field:'status',width:60,align:'center'">Status</th> </tr> </thead> </table> </body> Title: Re: Set Height of datagrid to 100% Post by: jarry on March 16, 2022, 09:16:37 PM Please refer to the code below.
Code: <body> |