View Full Version : 2 lists in one combobox (autocomplete)

23 Jul 2010, 8:56 AM
I have a simple auto complete working using a combobox. However, I'd like to have two seperate lists, similar to the "To" search on this site: http://mumbai.burrp.com/ (http://mumbai.burrp.com/#)

Can anyone provide some guidance on where I would extend the standard combobox to do something like this?


23 Jul 2010, 9:49 AM
Return the Store data sorted, and use a complex tpl to render the two separately.

23 Jul 2010, 10:04 AM
Thanks. For the template, where can I get more information on the available syntax conditionalizing the template? I found this link http://www.sencha.com/learn/Tutorial:Utilizing_Format_Features_of_Templates, but I think I would need some more type of "if then else" type logic inside the template to make this work.

25 Jul 2010, 6:27 AM
That's only a tutorial on Ext.Template. You want to use Ext.XTemplate with a <tpl if="...">...</tpl> construct.