erdal Posted July 17, 2014 Share 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}); Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted July 17, 2014 Administrators Share Posted July 17, 2014 ...\demos\LiveComboBox Link to comment Share on other sites More sharing options...
erdal Posted July 17, 2014 Author Share Posted July 17, 2014 fine thanks . Link to comment Share on other sites More sharing options...
erdal Posted July 17, 2014 Author Share Posted July 17, 2014 Farshad. i want to use single state. examples:When entering information on the right side, you complete the sentence. Link to comment Share on other sites More sharing options...
erdal Posted July 17, 2014 Author Share 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. Link to comment Share on other sites More sharing options...
Sherzod Posted July 17, 2014 Share 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 Link to comment Share on other sites More sharing options...
erdal Posted July 17, 2014 Author Share Posted July 17, 2014 fine thanks. many many..work.. Link to comment Share on other sites More sharing options...
Recommended Posts