1. 程式人生 > >eayui js動態載入Datagrid,自適應寬度,高度

eayui js動態載入Datagrid,自適應寬度,高度

HTML:

<div class="easyui-layout" style="min-height:100%;min-width:100%;">
<div id="gridData" class="region:'center',easyui-datagrid" ></div>
</div>

JS:

$("#datagrid").datagrid({
            fit: true,
            fitColumns: true,
            striped: true,
            border: 
false, rownumbers: true, pagination: true, toolbar: "#toolbarid", columns: [columns], })