Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

jQuery EasyUI Tree Menu - Create a base tree mesh


May 09, 2021 jQuery EasyUI


Table of contents


jQuery EasyUI Tree Menu - Create a base tree mesh

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.

jQuery EasyUI Tree Menu - Create a base tree mesh

Create a TreeGrid

	<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>

Download the jQuery EasyUI instance

jeasyui-tree-treegrid1.zip