-
16 Jan 2013 9:02 AM #1
Grid Filter Configuration
Grid Filter Configuration
Hello,
Is it possible to configure this?
Thanks
-
16 Jan 2013 11:34 AM #2
Manually:
SA 2.1: Override.
SA 2.2: new "process config".
Regards.UI: Sencha Architect 2.x / ExtJS 4 MVC
Server side: EJB 3.1 / CDI / JPA 2 / JAX-RS / JasperReports
Application Server: Glassfish 3.1.x
Databases: Oracle 10g & 11g / DB2 9 & 10 / Firebird 2.5
If you like my answer please vote!
-
16 Jan 2013 12:22 PM #3
-
16 Jan 2013 1:40 PM #4
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.
-
13 Mar 2013 1:16 PM #5
-
13 Mar 2013 2:40 PM #6
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)
-
14 Mar 2013 2:32 AM #7
Ok that works but the DirectStore not query with Filters?
Any Hint?
-
14 Mar 2013 4:19 AM #8
Here my code:
Store:
Grid: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)]); } });
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]; } });
-
14 Mar 2013 11:00 AM #9
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
-
14 Mar 2013 12:21 PM #10
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.


Reply With Quote