PDA

View Full Version : combobox not filtering options with text typed



pdcc
6 Aug 2013, 2:01 AM
Hi people,

I'm tring to put to work one combobox with auto suggest and for that i use a store that loads Json data of php script.

My JavaScript code:

http://pastebin.com/y20ZFxfB

My php code:

http://pastebin.com/dybrYNfr
With my Json I think its all rigth.
My problem is that the combo shows all data and not filtering the values according to text typed.
I have tring many things with 'remoteFilter', 'lastQuery' but nothing works...
I have to add listener to combo and make filtering function?

Thanks

wm003
7 Aug 2013, 4:13 AM
Your PHP code does not seem to respect sorting and filtering. You need to do all sorting and filtering at the backend within the SQL query and just return that instead of everytime everything.