原創(chuàng)|使用教程|編輯:龔雪|2016-07-20 09:15:50.000|閱讀 601 次
概述:樹網(wǎng)格可以展示有限空間上附帶的多列和復(fù)雜數(shù)據(jù)電子表格。本教程將演示如何將表格數(shù)據(jù)排列在分割的網(wǎng)格和多行表頭中,以便組織共同的數(shù)據(jù)。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關(guān)鏈接:
Kendo UI for jQuery——?jiǎng)?chuàng)建現(xiàn)代Web應(yīng)用程序的最完整UI庫(kù)!查看詳情>>>
樹網(wǎng)格可以展示有限空間上附帶的多列和復(fù)雜數(shù)據(jù)電子表格。本教程將演示如何將表格數(shù)據(jù)排列在分割的網(wǎng)格和多行表頭中,以便組織共同的數(shù)據(jù)。
<table title="Complex TreeGrid" class="easyui-treegrid" style="width:550px;height:250px" url="data/treegrid2_data.json" rownumbers="true" showFooter="true" idField="id" treeField="region"> <thead frozen="true"> <tr> <th field="region" width="150">Region</th> </tr> </thead> <thead> <tr> <th colspan="4">2009</th> <th colspan="4">2010</th> </tr> <tr> <th field="f1" width="50" align="right">1st qrt.</th> <th field="f2" width="50" align="right">2st qrt.</th> <th field="f3" width="50" align="right">3st qrt.</th> <th field="f4" width="50" align="right">4st qrt.</th> <th field="f5" width="50" align="right">1st qrt.</th> <th field="f6" width="50" align="right">2st qrt.</th> <th field="f7" width="50" align="right">3st qrt.</th> <th field="f8" width="50" align="right">4st qrt.</th> </tr> </thead> </table>
正如您所看到的,樹網(wǎng)格的使用和數(shù)據(jù)網(wǎng)格一樣。請(qǐng)使用 'frozen' 屬性來(lái)定義凍結(jié)列,列的 'colspan' 和 'rowspan' 屬性來(lái)定義多行表頭。
下載EasyUI示例:
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自:慧都控件網(wǎng)