Code:
xgrid = new Ext.ux.GridExtension({ border:false ,stateful:false ,store:store ,loadMask: true ,stripeRows: true ,plugins: [new Ext.ux.grid.GridHeaderFilters()] ,columns:[] ,viewConfig:{onDataChange: function(){ var columns = []; columns.push(smodel); for (var i = 0; i < this.ds.reader.jsonData.totcol; i++) { eval("this.ds.reader.jsonData.columns[i].renderer = "+this.ds.reader.jsonData.columns[i].renderer); columns.push(this.ds.reader.jsonData.columns[i]); } this.cm.setConfig(columns); this.syncFocusEl(0); }, forceFit:true, emptyText: 'No records.'} ,tbar: tb ,sm : smodel ,bbar : new Ext.PagingToolbar({ store: store ,displayInfo:true ,pageSize:Prowperpage })});
... and this is my json..
Code:
{"metaData": {"totalProperty": "total","root": "records","fields": [{"name":"objectUser","mapping":"Utilizzatore","type":"string"},{"name":"objectCode","mapping":"Oggetto","type":"string"},{"name":"userID","mapping":"Utente\/*all","type":"string"},{"name":"applicationArea","mapping":"Area Applicativa","type":"string"},{"name":"mKey","mapping":"mKey","type":"string"}]},"success": true,"total": 164,"records": [-------],"totcol":4,"columns": [{"dataIndex":"objectUser","header":"Utilizzatore","filter":{"xtype":"textfield"},"decorated":false},{"dataIndex":"objectCode","header":"Oggetto","filter":{"xtype":"textfield"},"decorated":false},{"dataIndex":"userID","header":"Utente\/*all","filter":{"xtype":"textfield"},"decorated":false},{"dataIndex":"applicationArea","header":"Area Applicativa","filter":{"xtype":"textfield"},"decorated":false},{"dataIndex":"mKey","header":"mKey","hidden":true}]}
... but i don't see any filter in grid... without errors...Anyone can help?? Please..I've using EXT 3.3.0ThanksEDIT..In firebug i see that:When the plugin is inizialized, the column model does not exist yet. This is due to the type of column model (loaded via json)???