1. #1
    Ext User
    Join Date
    Feb 2009
    Posts
    4
    Vote Rating
    0
    tothit is on a distinguished road

      0  

    Default PagingModelMemoryProxy and combobox

    PagingModelMemoryProxy and combobox


    I try this code, and it is works for me, but the combo only search in the actual page.
    Code:
    public class AllomasCombo_local extends ComboBox {
        
        String lastQuery;
        
        public AllomasCombo_local() {
        
          
            PagingModelMemoryProxy  proxy = new PagingModelMemoryProxy (AppData.getAllomasok());
             
           
            PagingLoader loader = new BasePagingLoader(proxy);  
            loader.setRemoteSort(true);  
              
             ListStore<AllomasModel> store = new ListStore<AllomasModel>(loader); 
             loader.load(0,50);
    
            // store.add(AppData.getAllomasok());
            //loader.load();
            
    
            this.setDisplayField("allomasNev");
            this.setValueField("allomasId");
            this.setPageSize(50);
            this.setStore(store);
            this.setMinChars(1);
            this.setMinListWidth(350);
            this.setAutoWidth(false);
            this.setAllowBlank(false);
            this.setTriggerAction(ComboBox.TriggerAction.ALL);
            //this.setForceSelection(true);
        
            
        }
        
        
        
    }
    Maybe I need to rewrite the combobox's doQuery method, but I can't becouse of the private variables.

    Please, give me any advice!

  2. #2
    Sencha User
    Join Date
    Nov 2010
    Location
    London
    Posts
    5
    Vote Rating
    0
    Yodakoda is on a distinguished road

      0  

    Default


    Hi, I have just successfully implimented this.
    You have to bind the loader to the paging toolbar of the combobox.

    add:
    Code:
    combo.getPagingToolBar().bind(loader);
    And your paging will work from the memory datastore.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar