1. #71
    Sencha Premium Member d.zucconi's Avatar
    Join Date
    Jun 2008
    Location
    Piacenza (Italy)
    Posts
    80
    Vote Rating
    5
    d.zucconi is on a distinguished road

      0  

    Default


    Quote Originally Posted by qooleot View Post
    It works in 4.2 after I changed this in two places:

    var columns = this.grid.headerCt.getGridColumns(true);

    to this:

    var columns = this.grid.headerCt.getGridColumns();

    I'll need to go figure out what the 'true' was for and test with nested headers and other things though...but a few basic filters on a basic grid works.
    Correct.
    The prototype of method getGridColumns of Ext.grid.header.Container seems to be changed from ExtJS 4.1 to ExtJS 4.2:
    http://docs.sencha.com/extjs/4.1.1/#...getGridColumns
    http://docs.sencha.com/extjs/4.2.2/#...getGridColumns
    I think that the first parameter can be removed without problem as suggested.

    Thanks

  2. #72
    Sencha User
    Join Date
    Mar 2014
    Posts
    2
    Vote Rating
    0
    patfla is on a distinguished road

      0  

    Default


    Hi - I'm using 4.2.2. Upon loading HeaderFilters, the browser (both FF and Chrome) tells me that

    this.grid.headerCt

    is undefined.

    Looked at the 4.2.2 docs for Ext.container.Container and I don't see headerCt.

  3. #73
    Sencha Premium Member d.zucconi's Avatar
    Join Date
    Jun 2008
    Location
    Piacenza (Italy)
    Posts
    80
    Vote Rating
    5
    d.zucconi is on a distinguished road

      0  

    Default


    Quote Originally Posted by patfla View Post
    Hi - I'm using 4.2.2. Upon loading HeaderFilters, the browser (both FF and Chrome) tells me that
    this.grid.headerCt
    is undefined.
    Looked at the 4.2.2 docs for Ext.container.Container and I don't see headerCt.
    headerCt is a working attribute of Ext.panel.Table, initialized by its initComponent method.
    Unfortunately is not a documented private/protected variabile (so it could change or disappear with future versions of ExtJS) but it's the only way that I've found to access grid header containers (since ExtJS 4.x.x).
    I don't know if in the latest API version exists a better way to access this container.
    However I'm testing the plugin with the latest 4.2.2 and I've not found problems with this variable. I'm using "simple" grid only, without hierarchical headers or locked columns. Maybe you have a grid with special features or configuration ?

  4. #74
    Sencha User
    Join Date
    Mar 2014
    Posts
    2
    Vote Rating
    0
    patfla is on a distinguished road

      0  

    Default


    Thanks Damiano.

    I'm pretty much completely new to ExtJS, let alone Grid Headers Filter, and simply wanted to get something to display. Load, run, etc. I've been working off both my own ExtJS code as well example code upythread by prijithkr to tie together your code with my web site. Prijithkr said his code wasn't working but I haven't let that stop me.

    I can get his grid and data to display by moving

    plugins: [Ext.create('system.view.common.HeaderFilters')],

    outside the Ext.create on grid panel to

    requires: ['system.view.common.HeaderFilters'],

    however that's pointless in that there's no grid filtering.

    So I returned to plugins and now see

    [Ext.Loader] Synchronously loading 'system.view.common.HeaderFilters'; consider adding Ext.require('system.view.common.HeaderFilters') above Ext.onReadyext-all-dev.js:9409
    • [COLOR=red !important]Uncaught TypeError: Object #<error> has no method 'push'
    [/COLOR]
    which I could take as progress except that I think what ExtJS is telling is that it simply doesn't want to load HeaderFilters.js as a plugin.

  5. #75
    Sencha User
    Join Date
    Feb 2011
    Location
    India
    Posts
    17
    Vote Rating
    0
    EXTabhi is on a distinguished road

      0  

    Default Ext.grid.plugin.GridHeaderFilters dynamic grid reconfigure

    Ext.grid.plugin.GridHeaderFilters dynamic grid reconfigure



    Hello All,

    We are trying to set the columns dynamically in the grid with below steps



    var filterPlugin = Ext.create(
    'Ext.grid.plugin.GridHeaderFilters',
    {
    pluginId:'gridHeaderFilterPlugin'

    }) ;

    grid.suspendEvents();
    grid.reconfigure(forecastDataStore,myColumns);
    filterPlugin.init(grid);
    grid.plugins.push(filterPlugin);
    grid.getPlugin('gridHeaderFilterPlugin').renderFilters();

    grid.getView().refresh();
    grid.resumeEvents();but the filters are disappearing , also we are getting the error

    TypeError: k.push is not a functionsimilar to what is quoted in reply 74 by patflathanks to suggest on the same.

  6. #76
    Sencha User
    Join Date
    Jul 2014
    Posts
    1
    Vote Rating
    0
    pratikbhat is on a distinguished road

      0  

    Default Compatible with buffered store?

    Compatible with buffered store?


    Does this plugin work fine with buffered store for infinite scrolling?
    I am facing an issue wherein the scrollbar jumps a couple of rows on reaching the bottom rows, only when filters are active.

  7. #77
    Ext JS Premium Member
    Join Date
    Nov 2008
    Posts
    292
    Vote Rating
    3
    wki01 is on a distinguished road

      0  

    Default


    Any plans to upgrade for 5 ExtJS?

    thank you very much

  8. #78
    Ext JS Premium Member
    Join Date
    Sep 2008
    Location
    Raleigh, NC
    Posts
    145
    Vote Rating
    5
    qooleot is on a distinguished road

      0  

    Default


    " wki01
    Any plans to upgrade for 5 ExtJS? "


    I switched from using this plugin to the built-in items property of a column that takes an array of fields. It lacks event listeners (keyup to catch Enter key), and collection handling (set all fields, clear all fields) - so I've homebrewed a few things I need but it works well enough.