Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Dec 2008
    Location
    Mainz
    Posts
    241
    Vote Rating
    1
    crp_spaeth is on a distinguished road

      0  

    Default [FIXED-94] Server Proxy doesn't apply sorters, limit, start to the request Parameters

    [FIXED-94] Server Proxy doesn't apply sorters, limit, start to the request Parameters


    There seem to be a bug in the current Implementation of the Server Proxy.

    Since the current Implementation applys the parameters limit sort sortDir etc to the root node of the Operation Object:


    Code:
     read: function(options) {
            options = options || {};
    
            Ext.applyIf(options, {
                action : 'read',
                filters: this.filters,
                sorters: this.sorters,
                group  : {field: this.groupField, direction: this.groupDir},
                start  : 0,
                limit  : this.pageSize,
    
                addRecords: false
            });
    
            var operation = new Ext.data.Operation(options);
    
            return this.proxy.read(operation, this.onProxyRead, this);
        },
    And build Request doesen't extract those properties as Parameters they wont get sent to the Server:


    Code:
    buildRequest: function(operation) {
            var params = Ext.applyIf(operation.params || {}, this.extraParams || {});
    
            var request = new Ext.data.Request({
                params  : params,
                action  : operation.action,
                records : operation.records,
    
                operation : operation
            });
    
            request.url = this.buildUrl(request);
    
            
            operation.request = request;
    
            return request;
        },

  2. #2
    Sencha User
    Join Date
    Dec 2008
    Location
    Mainz
    Posts
    241
    Vote Rating
    1
    crp_spaeth is on a distinguished road

      0  

    Default


    As a quick and dirty Bugfix I am using this Override:

    Code:
    Ext.override(Ext.data.ServerProxy, {
    buildRequest: function(operation) {
            operation.params = Ext.applyIf(operation.params || {}, {
                filters : operation.filters,
                sorters : operation.sorters,
                group : operation.group,
                start : operation.start,
                limit : operation.limit
            });
            var params = Ext.applyIf(operation.params || {}, this.extraParams || {});
    
            
            var request = new Ext.data.Request({
                params  : params,
                action  : operation.action,
                records : operation.records,
    
                operation : operation
            });
    
            request.url = this.buildUrl(request);
    
            
            operation.request = request;
    
            return request;
        }
    });

  3. #3
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    7
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    Ok, I've put something similar into the ServerProxy so that all of those params are made available to the Ajax call. Will be available in next release.

    This may well change over time as we find a good way to standardise client-server communication of these params.
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

Similar Threads

  1. Grid pagination first request (make the request with the start and limit)
    By zharack in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 24 Jun 2009, 6:28 AM
  2. Grid pagination first request (make the request with the start and limit)
    By zharack in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 23 Jun 2009, 9:01 AM
  3. Grid not sending start and limit parameters when paginating (IE)
    By krypt0se in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 28 Feb 2008, 7:31 PM
  4. Grid not sending start and limit parameters when paginating (IE)
    By krypt0se in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 28 Feb 2008, 7:31 PM
  5. GroupingStore parameters in addition to Paging's start, limit
    By mobigital in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 29 Jan 2008, 12:51 PM

Thread Participants: 1

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