easyui datagrid footer 页脚问题

mvc 的一个例子

  public string IndexV2()
{
var dataGridJson = new DataGridJson();
var data = new List<MyClass11>
{
new MyClass11() { AuditUser="a"},
new MyClass11() { AuditUser="aa"}
, new MyClass11() { AuditUser="bb"}
};
dataGridJson.rows = data;
dataGridJson.total = ;
dataGridJson.footer = new List<MyClass11 >{ new MyClass11{ AuditUser = "cc" }};
return JsonConvert.SerializeObject(dataGridJson);
}
public class MyClass11
{
public string AuditUser;
}
  <table id="testgrid" class="easyui-datagrid" title="别人对我的奖扣" style="width: 100%;"
data-options="url: '@Url.Action("IndexV2", "UserRecord")',
method: 'POST',
fitColumns: true,
singleSelect: true,
rownumbers: true,
showFooter: true">
<thead>
<tr>
<th data-options="field:'AuditUser'">名称</th>
</tr>
</thead>
</table>

看了官方的 demo ,我又试了一下,第一次 失败了, 我是这样写的  dataGridJson.footer = new MyClass11{ AuditUser = "cc" };  果断什么都没有显示。它必须 要再包一层 List!

上一篇:【转】[MySQL复制异常]Cannot execute statement: impossible to write to binary log since statement is in row for


下一篇:Centos 6.5 搭建l2tp 服务端和客户端