This article helps you easily learn the jQuery plug-in EasyUI and teaches you how to use EasyUI to create a tree network. For more information, see
1. EasyUI create a basic tree grid
The TreeGrid component inherits from the data grid, but the parent/child node relationship between rows is allowed. Many attributes are inherited to the data grid and can be used in the TreeGrid. To use a TreeGrid, you must define the 'treefield' attribute to specify which field is used as the tree node.
This article will show you how to use the TreeGrid component to set a folder browsing.
Create a TreeGrid)
II. EasyUI create a complex tree grid
TreeGrid displays workbooks with multiple columns and complex data in a limited space. This tutorial shows how to arrange table data in a split grid and multiple row headers to organize common data.
Create a TreeGrid)
| Region |
| 2009 |
2010 |
| 1st qrt. |
2st qrt. |
3st qrt. |
4st qrt. |
1st qrt. |
2st qrt. |
3st qrt. |
4st qrt. |
As you can see, the use of Treegrid is the same as that of Datagrid. Use the 'Frozen' attribute to define frozen columns. use the 'colspan 'and 'rowspan' attributes of the columns to define multi-row headers.
The above describes how to create a simple tree network and a complex tree network for EasyUI.
For more information, see this article: how to easily learn the jQuery plug-in EasyUI to implement basic Tree Network operations (2)