【摘要】 ExtJs中Grid下拉框联动考必过小编为大家整理了关于ExtJs中Grid下拉框联动的信息,希望可以帮助到大家!
ExtJs中Grid下拉框联动
标签:ble下拉框联动复选框changearteditortunfunctionunder
selModel: {
//键盘导航, false则键盘操作无效
enableKeyNav: true,
//选择模式 SINGLE, SIMPLE, 和 MULTI
mode: ‘MULTI‘,
//点击checkbox框选中
checkOnly: false,
//在表头显示全选checkbox框
showHeaderCheckbox: true,
//复选框选择模式Ext.selection.CheckboxModel
selType: ‘checkboxmodel‘,
allowDeselect: true
},
{
text: bizI18n_hr.hrProdAccidentItem.effectUnit,
width: 110,
apgn: ‘center‘,
dataIndex: ‘effectUnit‘,
editor: {
xtype: ‘comboSearchUtil‘,
table: ‘(select * from sadp_md_common_types t where t.type_id<>\‘HR_EFFECT_UNIT\‘ start with t.type_id=\‘HR_EFFECT_UNIT\‘ connect by prior t.sid = t.parent_sid) sadp_md_common_types‘,
tableKey: ‘type_id‘,
tableValue: ‘type_name‘,
orderField: ‘type_seq‘,
filterName: ‘type_id‘,
emptyText: translations.pleaseInput,
msgTarget: ‘under‘,
psteners: {
change: function (combo, nV, oV) {
combo.up(‘grid‘).getSelectionModel().getSelection()[0].set("accidentCode", "");
}
}
}
},
{
text: bizI18n_hr.hrProdAccidentItem.accidentCode,
width: 120,
apgn: ‘center‘,
dataIndex: ‘accidentCode‘,
editor: {
xtype: ‘comboSearchUtil‘,
table: ‘(select * from sadp_md_common_types t where t.type_id<>\‘HR_ACCIDENT_CODE\‘ start with t.type_id=\‘HR_ACCIDENT_CODE\‘ connect by prior t.sid = t.parent_sid) sadp_md_common_types‘,
tableKey: ‘type_id‘,
tableValue: ‘type_name‘,
orderField: ‘type_seq‘,
filterName: ‘type_desc‘,
emptyText: translations.pleaseInput,
msgTarget: ‘under‘,
psteners: {
focus: function (combo) {
var effectUnit = combo.up(‘grid‘).getSelectionModel().getSelection()[0].data.effectUnit;
var store = combo.getStore();
var params = store.proxy.extraParams;
params[‘qm.filterValue‘] = effectUnit;
store.load();
}
}
},
renderer:function (v) {
return getCommonTypeItemName(‘HR_ACCIDENT_CODE‘,v);
}
},
ExtJs中Grid下拉框联动
标签:ble下拉框联动复选框changearteditortunfunctionunder
以上就是ExtJs中Grid下拉框联动的内容,更多资讯请及时关注考必过网站,最新消息小编会第一时间发布,大家考试加油!