PDA

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



fsa3
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?

Thanks.

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

fsa3
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.

Condor
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.