87,909
社区成员
发帖
与我相关
我的任务
分享
{
field : 'back_upb',
title : '资金来源',
width : 40,
editor : {
type : 'combobox',
required : true,
options:{
valueField:'code_no',
textField:'code_name',
url:'${ctx}/pms/op/prMst/codeDtlZjly.ht',
editable:false,
panelHeight : 70,
},
},
}
var lastIndex;
//....
onClickRow: function (rowIndex) {
if (lastIndex != rowIndex) {
$('#tt').datagrid('endEdit', lastIndex);
$('#tt').datagrid('beginEdit', rowIndex);
}
lastIndex = rowIndex;
}
如果直接显示输入框,可以使用formatter返回input就行了
{
field : 'pr_qtys',
title : '请购量',
width : 35,
formatter:function(){return '<input type=text/>'}
}