1. #1
    Sencha User
    Join Date
    Jun 2012
    Vote Rating
    agruss is on a distinguished road


    Default passing parameters to store

    passing parameters to store


    this question has been asked in other Sencha forums before, but I cannot get it to work.

    I created a JsonP Store with autoload false, the url is a local file.

    I have not changed the default values of the parameters for "limitParam" and "startParam" (so it should be start and limit)

    When loading the data, I try to pass the additional parameters

    var storeName = item.id+"Store";
    var store = Ext.getStore(storeName);
        params: {
    console.log(store.data,{level: 'debug'});
    the panel with the grid opens correctly with the correct store, but the limit parameter is happily ignored.

    this is the request header sent to the json doc:


    and I still get back the complete file with all 30 entries and paging starts at 25, although the proxy is set to a pagesize of 15.

    Ext.define('MyApp.store.productsStore', {
        extend: 'Ext.data.Store',
        requires: [
        constructor: function(cfg) {
            var me = this;
            cfg = cfg || {};
                autoLoad: false,
                storeId: 'LCDStore',
                model: 'MyApp.model.productModel',
                buffered: false,
                pageSize: 15,
                proxy: {
                    type: 'ajax',
                    url: 'data/LCDs.json',
                    reader: {
                        type: 'json'
            }, cfg)]);
    Any ideas what I might be missing?


  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Vote Rating
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold



    From reading the above it looks like the library is doing its job. The framework will only the start and limit parameters, it is up to the server-side to read these parameters and do the paging.
    Aaron Conran
    Sencha Architect Development Team

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi