May 09, 2021 jQuery EasyUI
The jQuery EasyUI Tree Grid component is inherited from the DataGrid, allowing for a parent/child relationship between rows. M any properties in a tree mesh are inherited from the data grid and can be used in the tree mesh. In order to use a tree mesh, the user must define the 'treeField' property, indicating which field is the tree node.
The following example shows you how to set up a folder tour using the tree mesh component.
<table id="test" title="Folder Browser" class="easyui-treegrid" style="width:400px;height:300px" url="data/treegrid_data.json" rownumbers="true" idField="id" treeField="name">
<thead>
<tr>
<th field="name" width="160">Name</th>
<th field="size" width="60" align="right">Size</th>
<th field="date" width="100">Modified Date</th>
</tr>
</thead>
</table>