Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3805476
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T14:41:03+00:00 2026-05-19T14:41:03+00:00

I have an ExtJs combobox. Its store loaded using JSON (using MyStore class below).

  • 0

I have an ExtJs combobox. Its store loaded using JSON (using MyStore class below). I want to load all the values to the store, and then filter them with the text entered in the combo’s textfield (preferably using the typeAhead feature).

The problem is that I want to do the filtering on the client side (combo’s mode property is ‘remote’, by default). I don’t want my combo to reload its store every time I type something.
How can I do that?

Thanks.

Here’s my store class :

MyStore = Ext.extend(Ext.data.JsonStore, {
    constructor: function(jsonUrl, storeId, id, description, isAutoLoad, cfg) {
        cfg = cfg || {};
        GenericStore.superclass.constructor.call(this, Ext.apply({
            storeId: storeId,
            root: 'result',
            url: jsonUrl,
            autoLoad: isAutoLoad,
            fields: [
                {
                    name: id
                },
                {
                    name: description
                }
            ]
        }, cfg));
    }    
});

And the combo :

            xtype: 'combo',
            fieldLabel: 'The Combo',
            width: 150,
            store: myStoreData,
            valueField: 'id',
            displayField: 'name',
            minChars : 0,
            editable : false,
            itemId : 'my-combo'
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T14:41:04+00:00Added an answer on May 19, 2026 at 2:41 pm

    To achieve this you must:

    1. Construct MyStore class with “isAutoLoad” config option as “true”
    2. In your combobox config set the “mode” config option to “local” (see Built the combo config code bellow for another config)

    Here is my short example:

    Construct myStoreData variable

    var myStoreData = new MyStore({
        autoLoad: true, //so the store will load automatically
        ...any_other_config_option...
    });
    

    Built the combo config

    {
         xtype: 'combo',
         fieldLabel: 'The Combo',
         width: 150,
         store: myStoreData, 
        // myStoreData is already loaded before as it have 'autoLoad' config set to true 
        // and act as localstore to populate the combo box item 
        // when the combo "mode" config set to 'local'
         valueField: 'id',
         displayField: 'name',
         minChars : 0,
         editable : true, //before was editable : false,
         itemId : 'my-combo',
         mode: 'local', // by default this was mode: 'remote'
         typeAhead: true // by default this was typeAhead: false
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ExtJS combobox with a remote data store behind it. In all
I have an ExtJS combobox, which is a required field, but I don't want
How do you implement a multiselect combobox as part of a Ext.FormPanel using ExtJs?
I am trying to load/show completely different set of values in a combobox(this one
After several failed attempts using ExtJS I have now decided to use javascript.The requirement
For example if I have extjs ComboBox, and I have URL like http://localhost:8080?param=value1,value2,value3 How
I want to implement the following combobox in ExtJS. The question is, how to
When submitting a form with Extjs I can see the form items have values
I've started using the Sencha Touch / ExtJS JavaScript framework and have am noticing
This is in ASP.NET. We are using a ExtJS frontend, and have our own

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.