|
//动态生成data
new Data(this, {
xid : 'mData',// 和this.mainData一致
onCustomRefresh : 'mDataCustomRefresh',
autoLoad : true,
defCols : {
fID : {
type : 'String',
label : 'ID'
},
fName : {
type : 'String',
label : '名称',
rules : {
required : {
params : true,
message : '名字必须有值'
},
readonly: "true"
}
}
},
idColumn : 'fID'
});
1、我按上面方法动态生成cdata, 但是onCustomRefresh方法不执行,是不是我写法有问题?
2、或者可否通过js创建cdata的新列?
|
|