Create a Complex TreeGrid
来源:互联网 发布:奥运会没人申办知乎 编辑:程序博客网 时间:2024/04/28 17:03
Create a Complex TreeGrid
Tutorial » Create a Complex TreeGrid
The TreeGrid can display spreadsheets with muliple columns and complex data on a limited space. This tutorial will demonstrate how table data can be arranged within a splitted grid and multi-row headers that allow you to organize data of any complicity.
View Demo
Build TreeGrid
- <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>
As you can see, the usage of treegrid is same as datagrid. Use 'frozen' attribute to define the frozen columns, 'colspan' and 'rowspan' attributes of columns to define multi-columns headers.
Download the EasyUI example:
easyui-treegrid-demo.zip
- Create a Complex TreeGrid
- Create a Basic TreeGrid
- Create a more Complex Data Model for an Asp.Net MVC Application
- A simple Complex class
- treegrid
- A simple C++ complex class
- complex
- Complex
- Complex
- complex
- Complex
- cvc-complex-type.2.4.a错误解决方法
- servlet-class :cvc-complex-type.2.4.a
- cvc-complex-type.2.4.a错误解决方法
- How to learn a complex system(draft)
- Create a DACL
- Create a simple module
- Create a RESTful REsoure
- 逻辑智力题
- C#学习笔记1——程序集
- this pointer
- POJ测试数据——转载自 狼之禅境
- C++11 中值得关注的几大变化(详解)
- Create a Complex TreeGrid
- java.lang.OutOfMemoryError: Java heap space + myeclipse中分配tomcat启...
- Scripting Package
- 教务系统总结四(思想)
- JSP企业面试题
- 解读Python内存管理机制
- Hibernate事件监听
- C++6.0调试篇:变量的观察--watch窗口的技巧
- 软件检测之缺陷模式库