Results 1 to 3 of 3

Thread: Extjs buffered store loads all new added items

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Sep 2015
    Posts
    3

    Default Extjs buffered store loads all new added items

    I am trying to use Ext's (4.1.1) buffered store/grid combination with data, which I cannot access directly through a rest Api.. or so, but the incoming data is handled by my controller and want just add this data to the buffered grid.
    And here comes the problem, when I load 500 items directly to the store, the buffering is working.. Only items which I can see gets rendered, but when I start to store.add(items) then they all gets automatically rendered..
    So this is my store & grid:

    Store:
    Code:
    this.store =Ext.create('Ext.data.ArrayStore',{ 
       storeId:'reportDataStore',
      fields:[{ name:'html'}],
      buffered:true,
      pageSize:100,
      autoLoad:true
    });


    Grid

    Code:
    { 
       xtype:'gridpanel',
      flex:1,
      hideHeaders:true,
      store:this.store,
      verticalScroller:{          rowHeight:43}, 
       disableSelection:true,
      columns:[{ header:'', dataIndex:'html', flex:1}]
    }


    Data Controller

    Code:
    onNewData: function(data) {
    Ext.getStore('reportDataStore').add(data);
    }


    So my expectation was, that data will get into the store, but only the visible data will get rendered.. Now it is so, that all new data gets rendered.

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for the report. Can you please post a test case which reproduces this issue?
    https://fiddle.sencha.com/#home

  3. #3
    Sencha User
    Join Date
    Sep 2015
    Posts
    3

    Default

    Please take a look, but it seams like the fiddle is buggy.. If you look in devTools the table is rendered into the dom but invisible. Don't know why..https://fiddle.sencha.com/#fiddle/ugs

Similar Threads

  1. buffered store loads all pages
    By innomative in forum Ext: Q&A
    Replies: 2
    Last Post: 2 Jun 2015, 11:36 PM
  2. Replies: 1
    Last Post: 11 Dec 2014, 5:51 AM
  3. [DUP] Store loads when grid filter plugin is added
    By rabindra.nitr in forum Ext 5: Bugs
    Replies: 1
    Last Post: 2 Dec 2014, 6:35 AM
  4. Indexing items in buffered store
    By dvoracekPDS in forum Sencha Ext JS Q&A
    Replies: 5
    Last Post: 18 Oct 2012, 3:39 AM
  5. Replies: 5
    Last Post: 12 Jul 2009, 10:42 PM

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
  •