<t:dgCol title="选修学期" field="xxxq" formatterjs="unitformatter" queryMode="single" extendParams="editor:'combobox''" width="120"></t:dgCol>
var Address = [{ "value": "1", "text": "CHINA" }, { "value": "2", "text": "USA" }, { "value": "3", "text": "Koren" }];
function unitformatter(value, rowData, rowIndex) {
if (value == 0) {
return;
}
for (var i = 0; i < Address.length; i++) {
if (Address.value == value) {
return Address.text;
}
}
}
行编辑的时候,下拉框没有绑值请问要如何处理呢?
|