原創(chuàng)|使用教程|編輯:龔雪|2016-03-22 09:21:05.000|閱讀 540 次
概述:在本教程中,我們將為您展示如何在數(shù)據(jù)網(wǎng)格的頁腳中顯示摘要信息行。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關(guān)鏈接:
Kendo UI for jQuery——?jiǎng)?chuàng)建現(xiàn)代Web應(yīng)用程序的最完整UI庫!查看詳情>>>
在本教程中,我們將為您展示如何在數(shù)據(jù)網(wǎng)格的頁腳中顯示摘要信息行。
想要顯示頁腳行,您應(yīng)該將showFooter屬性設(shè)置為true,然后準(zhǔn)備定義在數(shù)據(jù)網(wǎng)格數(shù)據(jù)中的頁腳行。以下是示例數(shù)據(jù):
{"total":1,"rows":[{"id":1,"name":"Chai","price":18.00}],"footer":[{"name":"Total","price":18.00}]}
<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>
頁腳行和顯示數(shù)據(jù)行一樣,所以您可以在頁腳顯示不止一個(gè)摘要信息。
下載EasyUI示例:
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自:慧都控件網(wǎng)