[CLOSED] Force remote reloading of ComboBox on each query

  1. #1

    [CLOSED] Force remote reloading of ComboBox on each query

    Now this has been a lot too many times. The excessive number of options on Ext controls are taking their toll. I cant recount how many times I came across an ExtJs/Ext.Net property while browsing around and thought it would be useful later sometime, and when the actual time for using it came, I forgot which property it actually was, and had a tough time digging it around!!

    Now, in the present case, I have a ComboBox bound to a store with remote loading. Now, for 2 successive identical queries (i.e. lastQuery == query), the ComboBox skips remote reloading and uses the data in the store instead. However, if I recall correctly, there was an option somewhere to override this and force ComboBox to always reload from the remote source even for 2 identical successive queries.


    I stepped around in Ext code, and encountered the following which made me believe whether it was at all possible:


            if(forceAll === true || (q.length >= this.minChars)){
                if(this.lastQuery !== q){
                    this.lastQuery = q;
                    if(this.mode == 'local'){

    I think I should mention that currently I am using a workaround to manually reset the combo's lastQuery to an empty string.


  2. #2

    RE: [CLOSED] Force remote reloading of ComboBox on each query

    Hi,

    I don't think that there is a property which force data reloading. As you can see the combo always compare lastQuery and current query.
  3. #3

    RE: [CLOSED] Force remote reloading of ComboBox on each query

    Hmm, so what was it that I am recalling :( If I find something out, I will post back here.

Similar Threads

  1. Combobox with force selection
    By dtamils in forum 1.x Help
    Replies: 5
    Last Post: Mar 28, 2012, 12:59 AM
  2. [CLOSED] [1.2] Force request from WebService-ComboBox
    By FVNoel in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 22, 2011, 12:35 PM
  3. Force Remote Validation before saving
    By chezinho in forum 1.x Help
    Replies: 3
    Last Post: Mar 05, 2011, 2:59 AM
  4. Replies: 1
    Last Post: Oct 19, 2009, 11:59 AM
  5. Hello, ComboBox Remote Query Question
    By bruce in forum 1.x Help
    Replies: 0
    Last Post: Mar 12, 2009, 10:55 PM

Posting Permissions