HI all~sorry for my english
Code:
new Ext.form.ComboBox( {
fieldLabel : 'BookStatus',
name : 'model.bookCategoryID',
store : new Ext.data.Store( {
proxy : new Ext.data.HttpProxy( {
url : './bookManagement/listAllStatusType.action'
}),
reader : new Ext.data.JsonReader( {}, [ {
name : 'id',
mapping : 'id',
type : 'int'
}, {
name : 'typeName',
mapping : 'typeName'
}])
}),
displayField : 'typeName',
valueField : 'id',
hiddenName : 'bookStatusQueryConditionDTO.statusId',
typeAhead : true,
mode : 'remote',
triggerAction : 'all',
emptyText : 'Please select...',
selectOnFocus : true,
readOnly : true
})
Here,I have two problem:
1:when I select a value, I can not make it return to empty status (Please select...);
2:the displayField is a i18n resource,how to change the typeName just like renderer method of ColumnModel.