PDA

View Full Version : custom autocomplete for combobox



Iva
10 Nov 2015, 5:04 AM
I have combobox with custom template for showing select items :
https://fiddle.sencha.com/#fiddle/10co

(https://fiddle.sencha.com/#fiddle/10co)I need to create autocomplete which search by "code" or "text".

Is it possible to create custom autocomplete for combobox?
What event is responsible for it?

Maybe somebody has any idea how to do it?
I'll be grateful for any help.

P.S. I have used ExtJs version 4.0.2 . Maybe it could be implemented on latest version.

tristan.lee
11 Nov 2015, 8:50 PM
This might be a start, but you may find some limitations. I found that it only works on 4.2.1+. There seems to be an issue with the findRecord() method on 4.2.0.

Give this a shot and expand as needed. Also, I removed the template you were using and just created a new field in the store that merged the 2 fields together for display purposes. This made querying much easier.

10v5

Iva
12 Nov 2015, 12:13 AM
Thanks a lot for your response. I also have found limitation on oldest version.