- 注册时间
- 2019-2-14
- 最后登录
- 1970-1-1
- 阅读权限
- 10
- 积分
- 27
- 精华
- 0
- 帖子
- 0
|
实际修改后代码如下(无效):
<div id="List" class="mini-treegrid" style="width:100%;height:100%;" showTreeIcon="true" treeColumn="AssetName"
idField="ID" parentField="ParentID" multiSelect="false" resultAsTree="false" expandOnLoad="false" virtualScroll="true"
allowCellWrap="true" >
<div property="columns">
<div field="check" type="checkcolumn"></div>
<div name="AssetName" field="AssetName" width="100px" headerAlign="center" allowSort="true">易耗品名称</div>
<div field="Brand" width="70px" headerAlign="center" allowSort="true">品牌</div>
<div field="GSpecial" width="70px" headerAlign="center" allowSort="true">型号</div>
<div field="Num" width="50px" headerAlign="center">数量</div>
<div field="Total" width="70px" headerAlign="center">金额</div>
</div>
</div>
<script type="text/javascript">
mini.parse();var ListGrid = mini.get("List");
ListGrid.loadList( [{AssetName:"1",Brand:"",GSpecial:"",Num:1,Total:10}], "ID", "ParentID");
var sorter = new TreeSort(ListGrid);
function keydown(e) {
var editor=e.sender,record=e.record;
if (e.keyCode == 13) {
alert("回车");
}
}
ListGrid.focus();
</script>
|
|