+ -
当前位置:首页 → 问答吧 → extjs 4.0 使用grid中combobox出现的问题

extjs 4.0 使用grid中combobox出现的问题

时间:2011-10-24

来源:互联网

{text: "材料名称",
dataIndex: 'cat',
width: 80,
sortable: true,
field:  
{id:'mat',
xtype: 'combobox',
//name:'e',
typeAhead: true,
forceSelection:true,
triggerAction: 'all',
displayField: 'mat',
valueField: 'mat',
selectOnTab: true,
store: this.clsbStore,
lazyRender: true,
allowBlank: false,
queryMode: 'local',
listClass: 'x-combo-list-small'}
}
在gird出现数据的时候 我双击combobox进入编辑状态的时候,他会显示的是上次我选择的值。

作者: lovelyboy923   发布时间: 2011-10-24

store: this.clsbStore,
把this去掉吧。 

作者: t15137830   发布时间: 2011-10-24