<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);
ListGrid.on("cellmousedown",function(e){ var record=e.record,column = e.column;
if (column.name == "Num") {
if (e.keyCode == 38) {
alert("向上键");
}
if (e.keyCode == 40) {
alert("向下键");
}
}
});
ListGrid.focus(); var Cell=[0,4]; var cellrow = ListGrid.getRow(0);
var cellcolumn = ListGrid.getColumn(4);
ListGrid.setCurrentCell([cellrow, cellcolumn]);
ListGrid.beginEditCell();
</script>