1. #1
    Sencha Premium Member
    Join Date
    Apr 2010
    Posts
    117
    Vote Rating
    11
    ralscha will become famous soon enough

      0  

    Default Disable paging parameters

    Disable paging parameters


    Hi

    Is there a way to configure a store that he does not send the paging parameters.

    If have this simple model and store objects

    Code:
    Ext.define('State', {extend : 'Ext.data.Model', fields : [ 'state' ],
    		proxy : {type : 'direct', directFn : stateAction.getStates}
    });
    
    var store = Ext.create('Ext.data.Store', { autoLoad : true, model : 'State'});
    The store sends this json request with the parameters "page", "start" and "limit".
    Code:
    {"action":"stateAction","method":"getStates","data":[{"query":"","page":1,"start":0,"limit":25}],"type":"rpc","tid":3}
    I don't need paging in this store. Is there a way to disable sending these parameters? It's not a big problem because the server method can simply ignore these parameters and send everything back.

    Ralph

  2. #2
    Sencha User
    Join Date
    Jul 2008
    Posts
    53
    Vote Rating
    0
    jash is on a distinguished road

      0  

    Default


    +1, need more control over the parameters send

    annoying stuff...

    You could set pageSize to 99999999 or so....

    Jash

  3. #3
    Sencha User
    Join Date
    Sep 2008
    Posts
    38
    Vote Rating
    0
    zeruyo is on a distinguished road

      0  

    Default


    No reply or solution about this issue? I find annoying too

  4. #4
    Touch Premium Member
    Join Date
    Jan 2008
    Location
    Quebec, Canada
    Posts
    124
    Vote Rating
    2
    nbourdeau is on a distinguished road

      0  

    Default


    Quote Originally Posted by zeruyo View Post
    No reply or solution about this issue? I find annoying too
    same for me ! I had to set pageSize to 0 and override my proxy to discard this params when limit = 0 ....

  5. #5
    Sencha Premium Member Wedgie's Avatar
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    76
    Vote Rating
    0
    Wedgie is on a distinguished road

      0  

    Default


    I'd like to know the answer to this too. It looks like this ability may be missing. It would be good to at least have that confirmed so we can add a feature request.

  6. #6
    Sencha User
    Join Date
    Nov 2011
    Posts
    2
    Vote Rating
    0
    bcrowder is on a distinguished road

      0  

    Default


    Code:
    proxy: {
       type: 'direct',
       directFn: direct.function,
       filterParam: undefined,
       groupParam: undefined,
       pageParam: undefined,
       startParam: undefined,
       sortParam: undefined,
       limitParam: undefined,
       }
    Last edited by bcrowder; 8 Dec 2011 at 1:11 PM. Reason: add code blocks.

  7. #7
    Sencha Premium Member
    Join Date
    Jun 2011
    Location
    Hartford, CT
    Posts
    20
    Vote Rating
    -1
    garberfc is an unknown quantity at this point

      0  

    Default


    Quote Originally Posted by bcrowder View Post
    Code:
    proxy: {
       type: 'direct',
       directFn: direct.function,
       filterParam: undefined,
       groupParam: undefined,
       pageParam: undefined,
       startParam: undefined,
       sortParam: undefined,
       limitParam: undefined,
       }
    Sorry, this doesn't work!!

  8. #8
    Sencha Premium Member
    Join Date
    Apr 2010
    Posts
    117
    Vote Rating
    11
    ralscha will become famous soon enough

      0  

    Default


    Hi
    It does work in my project (extjs 4.2.2). What version of ExtJs do you use?
    http://docs.sencha.com/extjs/4.2.2/#...-cfg-pageParam