-
8 Apr 2011 2:57 AM #181
Problem with GridFilters and reopen Grid
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'}
]
})],
-
19 Apr 2011 8:18 AM #182
I fixed it by myself...thanks for your support

-
3 May 2011 7:24 AM #183
Strange behavior: position of filter box affects auto-apply of filter
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.
-
11 May 2011 3:25 AM #184
Hi there!
I'd like to render the filter option list.
Instead of having just the text ('small','medium','large',...), I'd like to have an icon first:
Wanted code for rendered list:
<img src="./smallIcon.gif"> Small
<img src="./mediumIcon.gif"> Medium
<img src="./largIcon.gif"> Large
How to do this? Is it possible?
Thanks for your answer
Marc
-
12 May 2011 7:08 AM #185
Minor bug: If the data associated with a column in a grid had NULL values, you'd get:
In StringFilter.js (Line 87) change:PHP Code:Error: this.inputItem.getValue() is undefined
Source File: http://doug-dev.pacourts.us/js/ExtJS/ux/grid/GridFilters/filter/StringFilter.js
Line: 87
To:Code:return this.inputItem.getValue().length > 0;
Code:return (this.inputItem && this.inputItem.getValue() && (this.inputItem.getValue().length > 0));
-
12 May 2011 12:11 PM #186
SOLVED
SOLVED
I seem to have solved both of my problems... if you try to specify a filter:{ } definition in the defaults:{} config for the column model, it doesn't actually apply correctly. Once I explicitly put the filter:{ type:'string' } for each an every column, everything worked as expected.
There is probably a bug somewhere, because it sort of worked before, just some strange behavior as explained.
Just wanted to post my findings to help save others the headache of stepping through the code.
-
31 May 2011 7:52 PM #187
Link to Grails implementation by Mike Cantrell not valid
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?
-
15 Jun 2011 5:49 AM #188
Hi, I'm using this GridFilter extension with ExtJs 3.2.1. and it's really useful, good work so far.
But I'm missing the options to search for <= and >=.
Furthermore, it is not possible to specify a filter for "empty" or "not empty" values. For example I would like to see all rows that don't have any value in the filtered column.
Are you planning to implement such filteroptions?
Or is there anybody who implemented some of them already and would like to share the code?
Thanks.
-
16 Jun 2011 4:22 PM #189
how to make list of the grid filter fetch from store/ajax request?
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'
}]
};
-
1 Feb 2012 4:54 AM #190
Number of Filtered rows
Number of Filtered rows
Hi !
When gridFilter is active, how I can retrieve the number of filtered rows in my store and if a specific record is filtered ?
Thank for your help.


Reply With Quote