Problem with GridFilters and reopen Grid
I have a Grid with GridFilter and when I show for the first times the grid it's work all fine.
If I close the grid and after I reopen it the GridFilter doesn't appears. Why?
The code is:
WINConsulente_GRID = Ext.extend(Ext.grid.EditorGridPanel, {
plugins: [new Ext.ux.grid.GridFilters({
filters:[
{type: 'string',dataIndex: 'cod'},
{type: 'string',dataIndex: 'username'/*,disabled: true*/},
{type: 'string',dataIndex: 'ragione_sociale'},
{type: 'string',dataIndex: 'telefono'},
{type: 'string',dataIndex: 'fax'},
{type: 'string',dataIndex: 'email'},
{type: 'string',dataIndex: 'website'},
{type: 'string',dataIndex: 'ref_nome'},
{type: 'string',dataIndex: 'ref_cognome'},
{type: 'string',dataIndex: 'ref_telefono'},
{type: 'string',dataIndex: 'ref_cellulare'},
{type: 'string',dataIndex: 'ref_email'},
{type: 'string',dataIndex: 'indirizzo'},
{type: 'string',dataIndex: 'cap'},
{type: 'string',dataIndex: 'frazione'},
{type: 'string',dataIndex: 'localita'},
{type: 'string',dataIndex: 'provincia'},
{type: 'string',dataIndex: 'cod_ateco'},
{type: 'string',dataIndex: 'desc_ateco'},
{type: 'string',dataIndex: 'cod_inail'},
{type: 'string',dataIndex: 'sede_inail'},
{type: 'string',dataIndex: 'iscrizione_inail'},
{type: 'string',dataIndex: 'pers1'},
{type: 'string',dataIndex: 'pers2'},
{type: 'numeric',dataIndex: 'pers3'},
/*{type: 'list',dataIndex: 'size',options: ['small', 'medium', 'large', 'extra large'],phpMode: true},*/
{type: 'date',dataIndex: 'data_creazione',beforeText: 'Prima del', afterText: 'Dopo il', onText: 'Il' },
{type: 'boolean',dataIndex: 'attivo'}
]
})],
Strange behavior: position of filter box affects auto-apply of filter
I noticed something strange... when using a string filter, when clicking drop-down menu in the header to fill in the filter, if the search field is to the right of the drop-down, the filter "auto applies" (ie. there is a slight delay when I finish typing (or press enter) and the filter automatically checks the checkbox and the filter is applied).
However, if the column I want to filter is to the right side of the grid, and the filter field is forced to open to the left of the drop-down menu due to space limitations, the filter does NOT auto-apply if I pause typing or even press enter. I must manually check the check-box to have the filter applied.
I'm using autoReload:false and local:true in case it matters.
Link to Grails implementation by Mike Cantrell not valid
The link to a Grails implementation (by Mike Cantrell) on the first post of this thread appears to be no longer active.
http://mcantrell.wordpress.com/2008/...ds-and-grails/
Does anyone have access to or a copy of that code?
how to make list of the grid filter fetch from store/ajax request?
Good morning,
based on this example : http://dev.sencha.com/deploy/ext-4.0...ter-local.html
I have difficulty to take "list" type of filters to fetch from store / ajax request, take a look at my script, what is wrong with it?
Is there any suggestion master?
PHP Code:
//initial variable
var dataKategori = '';
Ext.Ajax.request({
url: '/CI/ecommerce/getKategoriBarang',
success: function(response){
dataKategori = response.responseText;
}
});
var filters = {
ftype: 'filters',
encode: true,
local: false,
filters: [{
type: 'list',
dataIndex: 'namaKategori',
=> options: [dataKategori],
phpMode: true
}, {
type: 'string',
dataIndex: 'namaBarang'
}, {
type: 'numeric',
dataIndex: 'harga'
}, {
type: 'numeric',
dataIndex: 'jumlahStock'
}, {
type: 'numeric',
dataIndex: 'sisa'
}]
};