87,904
社区成员
发帖
与我相关
我的任务
分享
{
header:'项目明细',
flex: 1,
sortable: true,
dataIndex: 'itemname',
hideable: true,
editor : {
xtype: 'combobox',
displayField: 'itemname',
value:'itemname',
typeAhead: true,
width: 200,
labelWidth: 200,
store: qureystore,
triggerAction: 'all',
valueField : 'itemname',
forceSelection :false,
selectOnFocus :false,
listConfig: {
getInnerTpl: function() {
return '<div data-qtip="{content}">{itemname}</div>';
}
},
listeners : {
render : function(f)
{
f.el.on('change', function(e) {
f.setValue(f.getValue());
f.setRawValue(f.getValue());
qureystore.proxy= new Ext.data.HttpProxy({
model:'qurey',
url : "stock_qurey2.asp?name=" + f.getValue(),
method : 'POST',
reader : new Ext.data.JsonReader({
root : "rows",
totalProperty : 'total',
id: 'id'
},qurey)
})//说明数据结构
qureystore.load();
f.originalValue= f.getValue();
});
},
select:function(f,records,e)
{
}
}
}
}