Please try the following steps.
1. Prepare treegrid data with a field object that describe what information you want. The 'rec' field below is just the field we want.
var data = [{
"id":2,
"rec":{"filename":"file1"},
"size":"120 MB",
"date":"03/20/2010",
"children":[{
...
}]
},{
"id":3,
"rec":{"filename":"eclipse"},
"size":"",
"date":"01/20/2010",
"children":[{
...
}]
}]
2. Bind the 'rec' field as tree field.
<table title="Folder Browser" class="easyui-treegrid" style="width:700px;height:250px"
data-options="
data:data,
idField: 'id',
treeField: 'rec',
remoteSort:false
">
<thead>
<tr>
<th data-options="field:'rec',formatter:formatRec,sortable:true,sorter:sortRec" width="220">Name</th>
<th data-options="field:'size'" width="100" align="right">Size</th>
<th data-options="field:'date'" width="150">Modified Date</th>
</tr>
</thead>
</table>
3. Define the formatter and sorter functions.
function formatRec(value,row){
return value ? value.filename : value;
}
function sortRec(a,b){
return a.filename>b.filename?1:-1;
}