There is no built in feature similar to 'iDeferLoading' but customizing the loader can do the same thing. Here is the simple implementation:
<script>
function myloader(param, success, error){
var opts = $(this).datagrid('options');
if (!opts.url) return false;
if (!opts.loaded) {
var data = $(this).datagrid('getData');
data.total = opts.iDeferLoading;
$(this).datagrid('getPager').pagination('refresh',{total:data.total});
opts.loaded = true;
return false;
}
$.ajax({
type: opts.method,
url: opts.url,
data: param,
dataType: 'json',
success: function(data){
success(data);
},
error: function(){
error.apply(this, arguments);
}
});
}
</script>
And the usage shows below:
<table class="easyui-datagrid" title="Basic DataGrid" style="width:700px;height:250px"
data-options="singleSelect:true,
pagination:true,
loader:myloader,
iDeferLoading:100,
url:'../datagrid/datagrid_data1.json'">
<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>
<tbody>
<tr>
<td>item1</td>
</tr>
<tr>
<td>item2</td>
</tr>
</tbody>
</table>