Regarding the related issues of combo in ext, it is like this, I want to automatically load the selected item when it is modified

Regarding the question , it is like this , I want to automatically load the selected items when modifying,
such as the title,
 var statusStore = new Ext.data.SimpleStore({
  fields: ['id', 'status'],
data : [[ 'In use', 'In use'],['Archive', 'Archive'],['Disable', 'Disable'],['Scrap', 'Scrap']]  
  });



{
xtype: 'combo' ,
fieldLabel: 'status',
mode: 'local',
id : 'status',
typeAhead: true,// automatically match content
triggerAction: 'all',
lazyRender:true,
forceSerlection: true,//limit the selected value to a list An
editable in: true,
allowBlank : false,
emptyText: 'Please select',
blankText:"Please select a status, the status cannot be empty!",
store: statusStore,
valueField: 'id',
displayField: 'status'
 
 
}



------Solution------------ -------------------------------------------------------- Automatically load when
modifying Selected item? Please explain...don't understand. make it clear

Specifically: http://www.verydemo.com/demo_c113_i5528.html

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326565811&siteId=291194637