62,242
社区成员




public void ProcessRequest(HttpContext context)
{
HttpResponse response = context.Response;
string data = "[{'id':1,'name':'C','size':'','date':'02/19/2010'}]";
data = data.Replace('\'', '\"');
response.Write(data);
}
<table id="tt" title="Folder Browser" class="easyui-treegrid" style="width:700px;">
<thead>
<tr>
<th data-options="field:'name'" width="220" align="center">Name</th>
<th data-options="field:'size'" width="100" align="center">Size</th>
<th data-options="field:'date'" width="150" align="center">Modified Date</th>
</tr>
</thead>
</table>
<script type="text/javascript">
$(function () {
$('#tt').treegrid({
url: '/GetGroupData/GetGroupByData.ashx',
method: 'get',
rownumbers: true,
idField: 'id',
treeField: 'name'
});
});
</script>