Jump to content

simple combobox


erdal

Recommended Posts

http://docs.sencha.com/extjs/4.2.2/extjs-build/examples/form/combos.html

How to use my project. Pls help me.
 
Combobox.js

Locally loaded data

This ComboBox uses local data from a JS array:



Select a single state:


// Define the model for a State
Ext.regModel('State', {
fields: [
{type: 'string', name: 'abbr'},
{type: 'string', name: 'name'},
{type: 'string', name: 'slogan'}
]
});

// The data store holding the states
var store = Ext.create('Ext.data.Store', {
model: 'State',
data: states
});

// Simple ComboBox using the data store
var 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

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

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.

  • Upvote 2
Link to comment
Share on other sites

×
×
  • Create New...