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
    5,394
    Vote Rating
    201
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      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