1. #1
    Sencha User
    Join Date
    Jul 2012
    Location
    Mumbai
    Posts
    3
    Vote Rating
    0
    techprahlad is on a distinguished road

      0  

    Default directStore With Grid Paging

    directStore With Grid Paging


    When i am working with directStore, how to process with grid Paging Tool and Grid Buffer
    Regards,
    Techprahlad

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,672
    Vote Rating
    747
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Are you wanting to use paging or the buffered store?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Location
    Mumbai
    Posts
    3
    Vote Rating
    0
    techprahlad is on a distinguished road

      0  

    Default Query

    Query


    Its Related to Paging
    Regards,
    Techprahlad

  4. #4
    Sencha User
    Join Date
    May 2013
    Posts
    1
    Vote Rating
    0
    nivina is on a distinguished road

      0  

    Default


    So I am running into an issue which I expect is similar to the OP. I'm having an interesting time getting buffered scrolling working with a direct store using the api scheme.

    I have looked quite a bit for examples of using direct store with the api scheme, but haven't been able to find any. First I'll explain what I'm doing, then I'll explain the result I'm seeing.

    Here is the code I'm using:

    Code:
    Ext.require([
    	'Ext.grid.*',
    	'Ext.data.*',
    	'Ext.util.*',
    	'Ext.state.*',
    	'Ext.ux.grid.FiltersFeature',
    	'Ext.grid.plugin.BufferedRenderer'
    ]);
    
    
    
    Ext.define('App.store.SampleStore', {
        extend : 'Ext.data.DirectStore',
        requires : [
            'App.model.SampleModel'
        ],
        constructor : function(cfg) {
            var me = this;
            cfg = cfg || {};
    
            me.callParent([Ext.apply({
                model : 'App.model.SampleModel',
    
                pageSize : 15,
                buffered : true,
                trailingBufferZone : 30,
                leadingBufferZone : 15,
    
                autoLoad : true,
                proxy : {
                    type : 'direct',
                    api : {
                        read : SampleApi.getResults
                    },
                    reader : {
                        type : 'json',
                        root : 'records',
                        totalProperty : 'total',
                        successProperty : 'success'
                    }
                }
            }, cfg)]);
        }
    });
    
    var sampleStore = Ext.create('App.store.SampleStore');
    
    Ext.create('Ext.grid.Panel', {
        renderTo : 'someDivId',
        store : sampleStore,
        plugins: [
            Ext.create('Ext.grid.plugin.BufferedRenderer', {
                trailingBufferZone : 30,
                leadingBufferZone : 15
            })
        ],
        columns : [
            {
                dataIndex : 'sample_data',
                text : "Sample Data",
                flex : 1,
                hideable : false
            }
        ]
    });
    I have tried it with and without the plugin declaration in the grid, as i've found examples of people doing this many different ways.

    The result I see is that the page loads. The initial data set is requested from the server. Then two additional requests are made, each requesting 2 more pages of data (buffering). This all happens, the response is valid, yet the grid draws with no data.

    What additional information can I provide that can help? The data response from the server is proper. I can test that by adding the standard pagination bar to the grid and removing buffering. It allows me to page around at will and data is always rendered.

    I feel like every example I come across is doing either REST or JSON proxies; is there a direct store limitation?


    -- adam
    Last edited by nivina; 2 May 2013 at 6:59 AM. Reason: added the ext required libraries for reference

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar