@author YHC
在这个教程中,我们将告诉你如何显示摘要信息行在datagrid页脚.

显示页脚行,你应该设置showFooter 属性为true,然后准备页脚行定义在datagrid的数据,以下是示例数据.
{"total":1,"rows":[{"id":1,"name":"Chai","price":18.00}],"footer":[{"name":"Total","price":18.00}]}
创建DataGrid
<table id="tt" title="DataGrid" class="easyui-datagrid" style="width:400px;height:250px"
url="data/datagrid17_data.json"
fitColumns="true" rownumbers="true" showFooter="true">
<thead>
<tr>
<th field="name" width="80">Product Name</th>
<th field="price" width="40" align="right">Unit Price</th>
</tr>
</thead>
</table> 页脚行和显示数据行一样,所以你可以显示不止一个摘要信息在页脚.
本文介绍如何在DataGrid组件的页脚显示摘要信息。通过设置showFooter属性为true,并在数据源中定义页脚数据,可以实现多种摘要信息的同时展示。
877

被折叠的 条评论
为什么被折叠?



