mini.parse();
var GridBody = mini.get("GridBody");
var json=[{"a":"a1","b":"b1"}];
GridBody.setData(json); //这儿绑定成功了, 但是点击单元格头排序时,却找不到数据。提示: json is error.
<div id="GridBody" class="mini-datagrid" idfield="a">
<div property="columns">
<div field="a" width="120" headeralign="center" allowsort="true">特征键值</div>
<div field="b" width="120" headeralign="center" allowsort="true">特征名称</div>
</div>
</div>
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) | Powered by Discuz! X2 |