在Ext.grid.PropertyGrid的listeners中加入以下代码:
SqlList为cmbox的属性行的id
SqlListCombo为下拉框的id
afteredit: function(o){
if('SqlList' == o.record.id){
var combo = Ext.getCmp('SqlListCombo');
var record = combo.findRecord(combo.valueField, o.value);
var src = propertyGrid.getSource();
src['SqlList'] = record.get(combo.displayField);
propertyGrid.setSource(src);
}
}
本文介绍了如何在Ext.grid.PropertyGrid的afteredit事件中监听SQL列表的变化,并通过下拉框找到对应的记录,更新PropertyGrid的源数据。此操作适用于需要实时更新数据展示的应用场景。
6662

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



