1. #1
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    8
    Vote Rating
    0
    svalmont is on a distinguished road

      0  

    Default Infinite grid with locking enabled loads whole data

    Infinite grid with locking enabled loads whole data


    Hi,

    when enabling locking on a remote infinite grid the whole data is loaded at once - and not piece by piece as it should be:

    TestModel.js:
    PHP Code:
    Ext.define('test.model.TestModel', {
        
    extend'Ext.data.Model',
        
    fields: [
            { 
    name'idfield'type'string' },
            { 
    name'rating'type'int' },
            { 
    name'salary'type'int' },
            { 
    name'name'type'string' }
        ],
        
    proxy: {
            
    type'direct',
            
    directFntestBufferedStoreSvc.getTestData,
            
    reader: { root'records' }
        }
    }); 
    TestStore.js:
    PHP Code:
    Ext.define('test.store.TestStore', {
        
    extend'Ext.data.Store',
        
    model'test.model.TestModel',
        
    autoLoadtrue,
        
    bufferedtrue,
        
    leadingBufferZone300,
        
    pageSize100
    }); 
    TestGridPanel.js:
    PHP Code:
    Ext.define('test.view.grid.TestGridPanel',  {
        
    extend'Ext.grid.Panel',
        
    alias'widget.testgridpanel',
        
    width800,
        
    height500,
        
    title'Some random data',
        
    store'TestStore',
        
    loadMasktrue,
        
    enableLockingtrue,
        
    selModel: {pruneRemovedfalse},
        
    plugins: [{ ptype'bufferedrenderer' }],
     
       
    columns: [        
           { 
    text'ID'dataIndex'idfield'flex},
            { 
    text'Name'dataIndex'name'flex},
            { 
    text'Rating'dataIndex'rating'flex},
            { 
    text'Salary'dataIndex'salary'flex}
        ]
    }); 
    To see the difference just set enableLocking to true/false -> true sends one additonal request which gets the complete data of the store.

    Thanks,
    Thomas

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,895
    Vote Rating
    176
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    I tried to reproduce the issue by modifying the source on this example:
    http://docs.sencha.com/ext-js/4-2/ex...te-scroll.html

    And I don't believe I'm seeing what you're describing (tried with 4.2 and 4.2.1 Beta).

    Are you able to reproduce the issue using that example by chance?

Thread Participants: 1

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..."