PDA

View Full Version : Json in a combo box



strad84
20 Oct 2009, 1:44 AM
I'm trying to view my json (http://paste.ideaslabs.com/show/S3vvoZNOHx) file into a combo box (that is inserted in a form panel).
When i click to the drop down menu i view the all invisible rows of my json (http://paste.ideaslabs.com/show/S3vvoZNOHx) file. Why ?? thanks



new Ext.form.ComboBox({
fieldLabel: 'Ordina per',
name: 'ordx',
//mode: 'local',
//displayField: 'UserName',
typeAhead: true,
triggerAction: 'all',
store : new Ext.data.ArrayStore({
url: 'mio.json',
root: 'utenti',
fields: ['IdUtente', 'UserName']
})
})

strad84
20 Oct 2009, 2:43 AM
no one ? :D

strad84
20 Oct 2009, 4:20 AM
ok...i' ve changed my json , now works !