Results 1 to 5 of 5

Thread: BufferedStore problem

  1. #1

    Default BufferedStore problem

    Hi,

    I am trying to use the BufferedStore. I have changed my store to Ext.Store.BufferedStore and set the leadingBufferZone config to true. The grid does not display the data, however when switching to Ext.data.Store and removing leadingBufferZone config, it works!

    I have tried this before and know it works, so I'm a little stuck. Here's my code...

    The View...

    Code:
    Ext.define('Actions.view.activitylog.ActivityLog', {
        extend: 'Ext.grid.Panel',
    
    
        requires: [
            'Actions.view.activitylog.ActivityLogController',
        ],
        controller: 'activitylog',
        id: 'gridactivity',
        xtype: 'gridactivity',
        columns: [
            { text: 'Details', flex: 1, dataIndex: 'ActivityDetails', sortable: true }
        ],
        rowLines: false,
        columnLines: false,
        minHeight: 200,
        loadMask: true,
        selModel: {
            pruneRemoved: false
        },
        multiSelect: true,
        viewConfig: {
            trackOver: false,
            emptyText: '<h3 style="text-align:center; margin-top:15px">There is no activity history</h3>'
        },
    });
    And Controller...

    Code:
    Ext.define('Actions.view.activitylog.ActivityLogController', {
        extend: 'Ext.app.ViewController',
        alias: 'controller.activitylog',
    
    
        init: function () {
            var me = this;
            var view = me.view;
    
    
            var configuration = Ext.getStore('storeConfiguration').getAt(0);
    
    
            // Activity log
            storeActivities = Ext.create('Ext.data.BufferedStore', {
                fields: ['ActivityDetails'],
                id: 'storeActivities',
                pageSize: 20,
                leadingBufferZone: 40,           
                proxy: {
                    type: 'odata',
                    url: configuration.get('spWebUrl') + "/_vti_bin/ListData.svc/Activity",
                    readUrl: configuration.get('spWebUrl') + "/_vti_bin/ListData.svc/Activity?$inlinecount=allpages",
                },
                remoteFilter: true,
                autoLoad: true
            });
    
    
            view.setStore(storeActivities);
            me.callParent();
        }
    });

  2. #2
    Sencha Premium Member EPV's Avatar
    Join Date
    Dec 2010
    Location
    Sweden
    Posts
    361
    Answers
    37

    Default

    I'm not sure if it will solve this error but why do you have your store in the viewcontroller and not in the viewmodel?

    Good luck / E

  3. #3

    Default

    That's just my implementation which works when I switch to Ext.data.Store, so shouldn't be an issue really. Can you see anything which would cause this not to work, seems like a bug to me!

  4. #4

    Default

    Any help?

  5. #5
    Sencha Premium User
    Join Date
    Aug 2016
    Posts
    30

    Default

    I'm having the same issue. Has anyone been able to resolve this problem?

Similar Threads

  1. [FIXED] [5.1.0.50] BufferedStore sorting problem
    By ralscha in forum Ext 5: Bugs
    Replies: 2
    Last Post: 31 Mar 2015, 9:59 PM
  2. Replies: 2
    Last Post: 7 Oct 2014, 4:36 AM
  3. [OPEN] BufferedStore PageMap and CheckboxModel Problem
    By honoraryhill in forum Ext 5: Bugs
    Replies: 1
    Last Post: 22 Sep 2014, 6:02 AM
  4. [FIXED] BufferedStore missing?
    By wayne.rudd in forum Sencha Architect 3.x: Bugs
    Replies: 3
    Last Post: 13 Aug 2014, 2:40 AM
  5. [FIXED] Possible bug with BufferedStore and ext direct proxy
    By ralscha in forum Ext 5: Bugs
    Replies: 1
    Last Post: 29 Apr 2014, 3:56 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •