Results 1 to 5 of 5

Thread: How to Do Custom Autocomplete function for ext Combobox

  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    11
    Vote Rating
    3
      0  

    Default How to Do Custom Autocomplete function for ext Combobox

    Hi -

    I have an extjs combobox which has autocomplete enabled. Right now the matching is done by the starting of the list. I want to do a word matching in the full string rather than the start. For eg, if the list is

    Code Complete
    Platform Code
    Code Master

    Right now when I type "Code", it show "Code Complete" and "Code Master"

    Rather I also want to get the Platform Code also in the list, along with other two.

    Let me know how I can do this.

    Thanks

  2. #2
    Sencha - Documentation Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,162
    Answers
    501
    Vote Rating
    257
      0  

    Default

    The anyMatch config for combo in 4.2.1 should help you do what you're wanting to do I believe:
    http://docs.sencha.com/extjs/4.2.1/#...x-cfg-anyMatch
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our human resources manager: fabienne.bell@sencha.com

  3. #3
    Sencha Premium Member
    Join Date
    Mar 2013
    Posts
    29
    Vote Rating
    1
      0  

    Default combobox anyMatch caseSensitive 4.2.1

    anyMatch not matching string in any position in the field value:

    I have the following config for my combobox using 4.2.1 code base
    anyMatch: true,
    autoSelect: true,
    minChars: 3,
    caseSensitive: false,
    queryMode: 'remote'

    I have standard data[] as root data json

    in my list i have the following Speedy Couriers, Couriers - but when typing in couri I don't get a match on Speedy Couriers - do I need to configure something else if the queryMode is remote, or am I missing some other config?

    thanks in advance

  4. #4
    Sencha Premium Member
    Join Date
    Mar 2013
    Posts
    29
    Vote Rating
    1
      0  

    Default

    maybe I need to pass filter=couri store proxy param to server, reduce list on server?

  5. #5
    Sencha Premium Member
    Join Date
    Mar 2013
    Posts
    29
    Vote Rating
    1
      0  

    Default

    yes works with server filter

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •