lost 发表于 2014-3-21 10:08
1.显示不出来加displayField=“Brand_name”.
2.http://miniui.com/demo/#src=datagrid/rowedit_lookup.htm ...
不行啊,我加了之后还是没有显示出来,你的demo我昨天都看了,都一样啊
下面是我的js代码
mini.parse();
var path = '<%=this.ResolveUrl("~") %>';
//列表加载
var form = new mini.Form("#center");
var crcHeight = document.getElementById("center").scrollHeight;
var grid = mini.get("datagrid1");
grid.setHeight("98%");
grid.load(null,e1);
function e1(e) {
var s = 0;
for (var i = 0; i < e.data.length; i++) {
grid.beginEditRow(e.data);
if (e.data.StockValue != null) {
s += parseFloat(e.data.StockValue);
}
}
}
//润滑记录窗体
var lbwindows = mini.get("lbwindows");
var grid1 = mini.get("datagrid2");
//grid1.load();
//查询
function search() {
var equ = mini.get("equname").getValue();
grid.load({ "equcode": equ }, e1);
}
//点击取消
function cancelRow(id) {
mini.get(id).hide();
}
function updateRow() {
lub_status.value = "a_ll";
var equcode = "";
var brand = "";
var value = "";
var len = grid.data.length;
var status = lub_status.value;
var arr = grid.data;
for (var i = 0; i < len; i++) {
var rowData = grid.getEditRowData(grid.data);
equcode += arr.EquCode + ",";
brand += rowData.Brand + ",";
value += rowData.usequa + ",";
}