1. #141
    Sencha Premium Member jordandev's Avatar
    Join Date
    Feb 2011
    Location
    BC, Canada
    Posts
    33
    Vote Rating
    4
    jordandev is on a distinguished road

      0  

    Default


    renderExtraColumn seems to fail sometimes after reconfigure is called on the grid 4.2 now. It creates the header fine but the first column is missing so all the columns are shifted one over. If I scroll up and down it fixes itself.

    This is with a buffered grid.

    Anyone else get this?

  2. #142
    Sencha User
    Join Date
    Feb 2012
    Location
    Milan
    Posts
    15
    Vote Rating
    0
    Steve88 is on a distinguished road

      0  

    Default


    There is a little bug with date filter.
    If you have null/empty date value in the store, during the application of the filter an error will occur:
    "Uncaught TypeError: Cannot call method 'getTime' of null"

    This can be easily corrected adding a if control before the applyFilters method (FilterBar.js, 666 row) return the item.

    Code:
    switch(operator) {
                        case 'eq':
                            filterFn = function(item) {
                                if (column.filter.type == 'date') {
                                    var valore = item.get(column.dataIndex);
                                    if(valore && valore !== null && valore != "") return Ext.Date.clearTime(item.get(column.dataIndex), true).getTime() == Ext.Date.clearTime(newVal, true).getTime();
                                } else {
                                    return (Ext.isEmpty(item.get(column.dataIndex)) ? me.autoStoresNullValue : item.get(column.dataIndex)) == (Ext.isEmpty(newVal) ? me.autoStoresNullValue : newVal);
                                }
                            };
                            break;
    Repeated of course for all operators.

    Steve

  3. #143
    Ext JS Premium Member
    Join Date
    Jul 2009
    Location
    Netherlands, NH
    Posts
    14
    Vote Rating
    0
    hansl1963 is on a distinguished road

      0  

    Default Using filterbar Ext 4.2.0663 problem

    Using filterbar Ext 4.2.0663 problem


    Hello,

    I'm using FilterBar successfully with Ext 4.1.3 but after upgrading to 4.2.0663 I get an error when loading the grid.

    This is a part of the code im using:

    PHP Code:
    Ext.define('sdmDataGridPanel', {
        
    extend'Ext.grid.Panel',

        
    forceFittrue,
        
    storeExt.create('sdmDataStore'),
        
        
    plugins: [{
            
    ptype'filterbar',
            
    showShowHideButtonfalse,
            
    showClearAllButtonfalse
        
    }],
        
        
    id'grid',

    .... 
    And get the next error:

    TypeError: result.push is not a function
    result.push(item);
    xt-all-debug.js (row 107050)

    Hope somebody can help me..

  4. #144
    Sencha User
    Join Date
    Dec 2012
    Posts
    7
    Vote Rating
    0
    lelit is on a distinguished road

      0  

    Default


    That's probably the same problem reported in the message #134 in this thread (look at the previous page): you probably need to tweak a few lines in the source where there is a call to the function getGridColumns(true): simply remove the argument and it should work.

  5. #145
    Ext JS Premium Member
    Join Date
    Jul 2009
    Location
    Netherlands, NH
    Posts
    14
    Vote Rating
    0
    hansl1963 is on a distinguished road

      0  

    Default


    Thanks lelit,

    I have been blind i think...
    Going to tweak the files...

    It works...

  6. #146
    Sencha User
    Join Date
    Apr 2013
    Posts
    2
    Vote Rating
    0
    landoni is on a distinguished road

      0  

    Default


    Thanks for this plugin, it's just what i was looking for.

    I have a similar problem as mpete, i can“t populate my comboboxes when the grid store is set to "remoteFilter: true". Should i create a separate store for each combo? I'm just getting started in extjs 4, any example would be appreciated.

    Thanks in advance,

    Agustin

  7. #147
    Sencha User
    Join Date
    Feb 2008
    Location
    Seattle, WA, USA
    Posts
    2
    Vote Rating
    0
    langles is on a distinguished road

      0  

    Default Initial filters on non-visible columns ignored

    Initial filters on non-visible columns ignored


    I had an issue where there was a filter applied to my grid store on a column that is not displayed in the grid. The FilterBar plugin was ignoring this initial filter because of this line in the parseInitialFilters() function:

    if (filter.property && !Ext4.isEmpty(filter.value) && me.columns.get(filter.property)) {

    My fix was to add this inital filter to the me.filterArray even though it didn't satisfy the condition:

    me.columns.get(filter.property)

    Regards,

    Scott Langley
    slangley@scharp.org