Hi everybody,

I'm trying to set a filter using a button on the buttonbar.
First I found the code the filter uses when I set it normally, by hand, this way:

Code:
    tbAanmeldingen.add(
        {
            text: 'All Filter Data',
            tooltip: 'Get Filter Data for Grid',
            handler: function () {
                var data = Ext.encode(filterAanmeldingen.getFilterData());
                Ext.Msg.alert('All Filter Data',data);
            }
        }
    );
What I got whas this:
Code:
[{"field":"achternaam","data":{"type":"string","value":"vrijdag"}}]
More or less what you would expect. But now I'm trying to set this same filter using a button on the toolbar - and I'm getting nowhere... This is the code I use:
Code:
        var gF = new Ext.ux.grid.GridFilters({
            filters:[
             {"field":"achternaam","data":{"type":"string","value":"vrijdag"}}
            ]
        });
    
    tbAanmeldingen.add(
      {
            text: 'toevoeg filter',
            handler: function () {
                filterAanmeldingen.addFilter(gF);
            }
      }
    );
I've tried all kinds of permutations of this code, but.. I keep getting the error:
Code:
type is undefined
http://localhost/bokx/web/js/extjs/src/widgets/grid/gridfilters/GridFilters.js
Line 734
Has anybody got this to work?

thanks!

Paul