1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    48
    Vote Rating
    0
    eaglefox12 is on a distinguished road

      0  

    Default Unanswered: How to load multiple grids faster

    Unanswered: How to load multiple grids faster


    I have 4 grid tables. They use the same modal. I cannot use the same store as each grid has to send a parameter value to get the data from db. So, what's happening is I ended up making 4 different stores and then when I load my application, it lags because it waits to load all the 4 stores. this is my grid.. so I have 3 more grids like this
    Code:
    this.grid1 =Ext.create('Ext.grid.Panel',{
            title:'GridView App',        store: store,        loadMask:true, 
            columns:[
                { header:'Q1',            sortable:true, dataIndex:'Q1', flex:1,},
                { header:'Q2',            sortable:true, dataIndex:'Q2', flex:1,},
                { header:'Q3',            sortable:true, dataIndex:'Q3', flex:1,},
                { header:'Q4',            sortable:true, dataIndex:'Q4', flex:1,}
    and this is my store1... and similarly I have 3 more stores like this each with parameter Q2, Q3, Q4 respectively

    Code:
    var store1 =Ext.create('Ext.data.JsonStore',{
            storeId:'myData',        scope:this, 
            fields:[
                { name:'Q1', type:'int'},
                { name:'Q2', type:'int'},
                { name:'Q3', type:'int'},
                { name:'Q4', type:'int'}
            ],        
            sorters:[{            property:'Q1',            direct:'ASC'}],        
            proxy:{            
                  type:'ajax',            
                  url:'GridView/writeRecord',            
                  extraParams: { ID: Q1 },            
                  reader: newExt.data.JsonReader({                
                       root:'myTable',               
                       totalProperty:'count'
                    })
                }
       });
    
    Is there a faster/better way to implement it than the way that I have?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,910
    Answers
    655
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Perhaps you could load the store and filter for each grid:
    http://www.sencha.com/forum/showthread.php?238783
    http://jsfiddle.net/slemmon/fK2aF/

    Scott.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."