PDA

View Full Version : Help order comboBox



chuvinha
29 Nov 2010, 5:18 AM
I am not able to order the comboBox.
In the data.field I put sortDir="ASC" , but It wasn't work.
Could someone help me?

Condor
29 Nov 2010, 5:25 AM
You don't sort a combobox, you sort the store (by specifying 'sortInfo' or by calling sort())!

chuvinha
29 Nov 2010, 5:49 AM
I put sortInfo : "nome", but It wasn't work.
I tried to put sortInfo : "displayField", but it gave error.
I tried to do this from data.store.
Would you have some example to show me Condor?

Condor
29 Nov 2010, 5:58 AM
In the store specify:

sortInfo: {field: 'nome', direction: 'ASC'}

chuvinha
29 Nov 2010, 6:05 AM
Cool, It was work here Condor.
My code was so sortInfo : {field: 'nome', direction: 'ASC'}
Thank's very much Condor =))