PDA

View Full Version : Sort on ComboBox with custom renderer.



t.dbydal
11 Dec 2012, 3:43 AM
I've got the following code generating a ComboBox with a custom renderer in a ColumnModel:


id: 'testType',
header: "Type",
width: 100,
dataIndex: 'testType',
editor: new Ext.form.ComboBox...,
renderer: translate.curry('testType')


Everything does work and it does show the correct ComboBoxes with the correct values in them.
However, I can't find a way to sort the list in the ComboBox to sort alphabetic after the renderer. I how no idea on where to begin and how to do it. I cannot sort in the Combox's store as the sorting should happen after the renderer. ...and I've Googled around for about 2-3 hours now. (:|

mitchellsimoens
13 Dec 2012, 7:17 AM
The combobox will show what is in the store so you need to sort the store.