1. #1
    Sencha User
    Join Date
    Nov 2007
    Posts
    52
    Vote Rating
    0
    boonkerz is on a distinguished road

      0  

    Default Grid Filter Configuration

    Grid Filter Configuration


    Hello,

    Is it possible to configure this?

    Thanks

  2. #2
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,264
    Vote Rating
    80
    ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough

      0  

    Default


    Manually:

    SA 2.1: Override.
    SA 2.2: new "process config".

    Regards.
    UI: Sencha Architect 3.x / ExtJS 4 & 5
    Server side: JEE / EJB 3.x / CDI / JPA 2.x/ JAX-RS / JasperReports
    Application Server: Glassfish / WildFly
    Databases: Oracle / DB2 / MySQL / Firebird

    If you like my answer please vote!

  3. #3
    Sencha User
    Join Date
    Nov 2007
    Posts
    52
    Vote Rating
    0
    boonkerz is on a distinguished road

      0  

    Default


    SA 2.2? is available?

  4. #4
    Sencha User
    Join Date
    Nov 2012
    Posts
    188
    Vote Rating
    16
    Gil Gordon will become famous soon enough

      0  

    Default sorry, no SA 2.2 publicly available yet

    sorry, no SA 2.2 publicly available yet


    there is a small private beta going on right now. that said, we are always on the lookout for good beta testers.

  5. #5
    Sencha User
    Join Date
    Nov 2007
    Posts
    52
    Vote Rating
    0
    boonkerz is on a distinguished road

      0  

    Default


    How can i use process config?

  6. #6
    Sencha User
    Join Date
    Nov 2012
    Posts
    188
    Vote Rating
    16
    Gil Gordon will become famous soon enough

      0  

    Default there's an example in an updated architect guide

    there's an example in an updated architect guide


    take a look at this new doc section: http://docs.sencha.com/architect/2/#...anel-section-8

    (yes we know the content is listed twice on that page. should be fixed soon)

  7. #7
    Sencha User
    Join Date
    Nov 2007
    Posts
    52
    Vote Rating
    0
    boonkerz is on a distinguished road

      0  

    Default


    Ok that works but the DirectStore not query with Filters?

    Any Hint?

  8. #8
    Sencha User
    Join Date
    Nov 2007
    Posts
    52
    Vote Rating
    0
    boonkerz is on a distinguished road

      0  

    Default


    Here my code:

    Store:
    Code:
    Ext.define('MyApp.store.MyProductStore', {
        extend: 'Ext.data.Store',
    
        requires: [
            'MyApp.model.Product'
        ],
    
        constructor: function(cfg) {
            var me = this;
            cfg = cfg || {};
            me.callParent([Ext.apply({
                model: 'MyApp.model.Product',
                remoteSort: true,
                storeId: 'MyDirectStore1',
                proxy: {
                    type: 'direct',
                    directFn: Actions.PSCBackendPortal_Product.getProductList,
                    reader: {
                        type: 'json',
                        root: 'rows',
                        totalProperty: 'results'
                    }
                },
                sorters: {
                    property: 'title'
                }
            }, cfg)]);
        }
    });
    Grid:
    Code:
    Ext.define('MyApp.view.MyProduct', {
        extend: 'Ext.grid.Panel',
        alias: 'widget.MyProduct',
    
        height: 250,
        width: 543,
        title: 'Produkte',
        forceFit: true,
        store: 'MyProductStore',
    
        initComponent: function() {
            var me = this;
    
            Ext.applyIf(me, {
                columns: [
                    {
                        xtype: 'gridcolumn',
                        dataIndex: 'uid',
                        text: 'Id'
                    },
                    {
                        xtype: 'booleancolumn',
                        dataIndex: 'active',
                        text: 'Aktiv?',
                        falseText: 'Nein',
                        trueText: 'Ja'
                    },
                    {
                        xtype: 'gridcolumn',
                        filter: {
                            type: 'string'
                        },
                        dataIndex: 'title',
                        text: 'Title'
                    }
                ],
                dockedItems: [
                    {
                        xtype: 'pagingtoolbar',
                        dock: 'bottom',
                        width: 400,
                        displayInfo: true
                    }
                ],
                selModel: Ext.create('Ext.selection.RowModel', {
    
                })
            });
    
            me.processMyProduct(me);
            me.callParent(arguments);
        },
    
        processMyProduct: function(config) {
            console.log(config);
    
            var filters = {
                ftype: 'filters',
                // encode and local configuration options defined previously for easier reuse
                encode: false, // json encode the filter query
                local: false   // defaults to false (remote filtering)
    
                // Filters are most naturally placed in the column definition, but can also be
                // added here.
    
            };
    
            config.features = [filters];
        }
    
    });

  9. #9
    Sencha - Architect Dev Team dfoelber's Avatar
    Join Date
    Sep 2011
    Location
    Rockville, MD
    Posts
    96
    Vote Rating
    12
    dfoelber will become famous soon enough

      0  

    Default


    Hi boonkerz,

    At first glance, you seem to be doing the process config part correctly. Where do things break down for you?
    David Foelber
    @davidfoelber
    Sencha Architect Development Team

  10. #10
    Sencha User
    Join Date
    Nov 2007
    Posts
    52
    Vote Rating
    0
    boonkerz is on a distinguished road

      0  

    Default


    the store not using the filters:

    {"action":"PSCBackendPortal_Product","method":"getProductList","data":[{"shopId":160,"page":1,"start":0,"limit":25,"sort":[{"property":"title","direction":"ASC"}]}],"type":"rpc","tid":7}

    only the normal stuff is requested.

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..."