1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    10
    Vote Rating
    0
    twister0k is on a distinguished road

      0  

    Default Ext.data.DataProxy load event extjs4

    Ext.data.DataProxy load event extjs4


    I trying to update code from extjs2 to extjs4. But I have a some problem with load event in Ext.data.DataProxy.

    Code:
    Ext.define('App.data.DwrProxy', {    extend: 'Ext.data.DataProxy',
        constructor: function(config){
            App.data.DwrProxy.superclass.constructor.call(this);
            this.invoker = config.invoker;
        },
        load: function(params, reader, callback, scope, arg) {
            if (this.fireEvent("beforeload", this, params) !== false) {
                if (!this.invoker) {
                    alert("'invoker' property is not specified");
                    return;
                }
                
                this.reader = reader;
                this.callback = callback;
                this.scope = scope;
                this.arg = arg;
                
                params.gridState = params.gridState || {};
                if (params.sort != null)
                    params.gridState.sortField = params.sort;
                if (params.dir == 'ASC')
                    params.gridState.descendingOrder = false;
                if (params.dir == 'DESC')
                    params.gridState.descendingOrder = true;
                if (params.start != null) {
                    params.gridState.pageNo = Math.floor(params.start / params.limit);
                    if (isNaN(params.gridState.pageNo))
                        params.gridState.pageNo = 0;
                }
                if (params.limit != null)
                    params.gridState.pageSize = params.limit;
                
                this.invoker.call(
                    scope || this, 
                    params,
                    arg,
                    {
                        callback: Ext.bind(this.success, this),
                        errorHandler: Ext.bind(this.failure, this)
                    }
                );
            } else {
                callback.call(scope || this, null, arg, false);
            }
        }
    
    });


    As I know, Ext.data.DataProxy load event don't support in extjs4. So, how to use this function?

  2. #2
    Sencha User
    Join Date
    Apr 2013
    Posts
    10
    Vote Rating
    0
    twister0k is on a distinguished road

      0  

    Default


    I used `read` instead and it working for me.

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