源码如下:
$("#tfvForm").combogrid({
panelWidth: 205,
idField: 'id', //ID字段
sortName: 'id',
sortOrder: 'asc',
textField: 'dictionaryValueName',//显示的字段
editable: false,
mode: 'remote',
required: true,
url: tfdURL + '!dataGrid.action',
queryParams:{
fieldId: row.templateFieldId
},
columns:[[{
field:'id',
hidden:true,
width:40
}]],
onSelect:function(index,row){
f.find('#tdkForm').val(row.dictionaryKey);
f.find('#tdvForm').val(row.dictionaryValueName);
},
//设置默认值代码
onLoadSuccess:function(){
$("#afvForm").combogrid("setValue",row.apiDictName);
}
});
本文详细介绍了如何使用特定组件进行组合框配置,包括设置面板宽度、ID字段、显示字段、编辑模式、远程模式、必填项以及数据加载成功后的操作。

990

被折叠的 条评论
为什么被折叠?



