jQuery EasyUI tree menu - Create a grid based tree

Tree grid (TreeGrid) components inherit from the Data Grid (DataGrid), but allows the parent / child relationship between the nodes in the row. Many of the properties inherited to the data grid (DataGrid), it can be used in the tree grid (TreeGrid) in. In order to use the tree grid (TreeGrid), the user must define 'treeField' property, indicate which field as tree nodes.

This tutorial will show you how to use the tree grid (TreeGrid) set up a folder browser component.

Create tree grid (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 jQuery EasyUI examples

jeasyui-tree-treegrid1.zip