Results 1 to 5 of 5

Thread: buffered grid - buffered store in Ext 4.1b2

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Location
    Katzenellenbogen
    Posts
    51
    Vote Rating
    1
      0  

    Question buffered grid - buffered store in Ext 4.1b2

    Hi,

    i have a buffered grid which works perfect in Ext Js 3.4 and 4.07. The data is fetched during scrolling in 100 blocks and displayed in the grid. In 4.1b2 it stops after the first block and hangs. The second data block is ok as i can see in Firebug. I read about this issue here in the Forum before.

    Please let me know if there is a fix or a workaround for this. Maybe the API changed?

    Thanks!

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      0  

    Default

    I'm unsure about your issue. Launching the example for the buffered grid, it is working just fine.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Location
    Katzenellenbogen
    Posts
    51
    Vote Rating
    1
      0  

    Default

    In the buffered grid example you are working with: store.cacheRecords(records);
    Our 'buffered grid' is working with a own proxy. It looks like this:

    Ext.define('MyProxy', {
    extend: 'Ext.data.AjaxProxy',
    constructor: function(config) {
    MyProxy.superclass.constructor.call(this, config);
    this.initConfig(config);
    logInfo("MyProxy.constructor()");
    },
    doRequest: function(operation, callback, scope) {
    logInfo("MyProxy.doRequest() starts");

    pageRequest(operation, callback, scope);
    logInfo("MyProxy.doRequest() ends");
    return;
    }
    });

    So doRequest is triggered by verticalScrollerType: 'paginggridscroller' from the grid. If you scroll down at a certain point a new doRequest is triggered and the next 100 records are added to the grid. pageRequest is controlled by operation.page and operation.limit and delivers the next records with a database request.
    To start the whole thing its enough to say: bufferStore.guaranteeRange(0, count -1);

    Hope this makes it clear. Thank you!

  4. #4
    Sencha User
    Join Date
    Feb 2012
    Location
    Katzenellenbogen
    Posts
    51
    Vote Rating
    1
      0  

    Question

    I tested it with 4.1b3. Now guaranteeRange even not starts the first doRequest on the proxy. So the behavior for buffered 'Reading' changes each build.

    Please let me know how to do buffered reading now. It cannot use cacheRecords because there are some ten thousand records to fetch. So i have to fetch them in handy blocks.



  5. #5
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,724
    Vote Rating
    248
      0  

    Default

    The guaranteeRange method had been broken in 4.1 for sometime, but should be fixed in the next build (the fixes are already in the nightly build).

    See http://www.sencha.com/forum/showthre...rolling-in-4.1
    Don Griffin
    Director of Engineering - Frameworks (Ext JS / Sencha Touch)

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"

Posting Permissions

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