1. #11
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Montréal, Canada
    Posts
    220
    Vote Rating
    5
    Christiand is on a distinguished road

      0  

    Default


    i've added to FiltersFeature.js the following:

    Code:
        /**
         *  progamatically activate a filter field with data
         * @param field the field dataIndex
         * @param data the data from  from @link Ext.ux.grid.FiltersFeature.getFilterData
         */
        setFilterData: function(field, data){
            if (typeof this.view.headerCt.menu == 'undefined'){
                this.forceMenuCreation();
            }
            var filter = this.getFilterByName(field);
            var value = this.unSerialArg(data);
            filter.setValue(value);
        },
    
    
        /**
         *  format  a value from getFilterData to be set into field
         * @param data object returned from @link Ext.ux.grid.FiltersFeature.getFilterData
         */
        unSerialArg: function(data){
            var value={};
            if (data.type == 'numeric'){
                value[data.comparison] = data.value;
            }
            else {
                value =data.value;
            }
            return value;
    
    
        },
    
    
        /**
         * if the menu have not been created, force it's creation
         */
        forceMenuCreation: function(){
            var gridMenu = this.view.headerCt.getMenu();
            this.onMenuCreate(this.headerCt, gridMenu);
        }
    and in my grids, I'm listening to the afterrender method and my the setFilterData method

  2. #12
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Montréal, Canada
    Posts
    220
    Vote Rating
    5
    Christiand is on a distinguished road

      0  

    Default


    looking into it, unSerialArg method is only for strings and int. I have not touched other data types. So you may have to improve this.

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