- 注册时间
- 2014-3-21
- 最后登录
- 2014-5-9
- 阅读权限
- 10
- 积分
- 44
- 精华
- 0
- 帖子
- 12
|
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 + ",";
}
$.ajax({
url: path + "data/equipment/LubricationServer.aspx?method=LubricationListIE",
data: {
equcode: equcode,
brand: brand,
value: value,
status: status
},
success: function(text) {
if (text != "true") {
mini.alert(text);
} else {
grid.load(null, e1);
}
}
});
}
function onShowPopup(e) {
grid1.load();
}
function onRowDblclick(e) {
grid.commitEdit();
}
请楼主指点 |
|