erdal Posted July 17, 2014 Posted July 17, 2014 http://docs.sencha.com/extjs/4.2.2/extjs-build/examples/form/combos.htmlHow to use my project. Pls help me. Combobox.jsLocally loaded dataThis ComboBox uses local data from a JS array:Select a single state:// Define the model for a StateExt.regModel('State', {fields: [{type: 'string', name: 'abbr'},{type: 'string', name: 'name'},{type: 'string', name: 'slogan'}]});// The data store holding the statesvar store = Ext.create('Ext.data.Store', {model: 'State',data: states});// Simple ComboBox using the data storevar simpleCombo = Ext.create('Ext.form.field.ComboBox', {fieldLabel: 'Select a single state',renderTo: 'simpleCombo',displayField: 'name',width: 500,labelWidth: 130,store: store,queryMode: 'local',typeAhead: true});
Administrators Farshad Mohajeri Posted July 17, 2014 Administrators Posted July 17, 2014 ...\demos\LiveComboBox
erdal Posted July 17, 2014 Author Posted July 17, 2014 Farshad. i want to use single state. examples:When entering information on the right side, you complete the sentence.
erdal Posted July 17, 2014 Author Posted July 17, 2014 yani, ben ekrana bilgiyi girerken, comboda aktif olan kaydın tamamını, bilgi girişi yaptığım yerde, tamamlasın. en başta yazdığım adreste, simple mode kısmını denersen görürsün. Çok lazım. İlgin için teşekkürler.
Sherzod Posted July 17, 2014 Posted July 17, 2014 Hi erdal. use typeAhead... UniComboBox1 -> ClientEvents -> UniEvents -> [Ext.form.field.ComboBox] add. function beforeInit(sender) { sender.typeAhead = true; } autocomplete - if the value of a single. try... Best regards. 2
Recommended Posts