Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User tolstoj's Avatar
    Join Date
    Mar 2007
    Posts
    55
    Vote Rating
    1
    tolstoj is on a distinguished road

      0  

    Default 3.4.0 - Error in GridFilters

    3.4.0 - Error in GridFilters


    Hi
    There is a problem that is driving me crazy when I switched to 3.4.0.
    Gridfilter menus dont display all items.. sometimes..

    Way to reproduce error:
    In example file grid-filter-local.js change options line:
    Code:
    type: 'list',
    dataIndex: 'size',
    //options: ['small', 'medium', 'large', 'extra large'],
    options: [[1, 'small'], [99, 'medium'], [98, 'large'], [2, 'extra large']],
    phpMode: true
    No large option will be visible.

    Cheers

  2. #2
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    891
    Vote Rating
    9
    wm003 will become famous soon enough

      0  

    Default


    This is because you are using a number value. i had the same problem. it is solved by the following fix in gridfilters/ListMenu.js
    Code:
    onLoad : function (store, records) {
            var visible = this.isVisible();
            this.hide(false);
            
            this.removeAll(true);
            
            var gid = this.single ? Ext.id() : null;
            var item;
            for(var i=0, len=records.length; i<len; i++){
                item = new Ext.menu.CheckItem({
                    text:    records[i].get(this.labelField), 
                    group:   gid,
                    checked: this.selected.indexOf(records[i].id) > -1,
                    hideOnClick: false});
                
                item.itemId = ""+records[i].id;
                item.on('checkchange', this.checkChange, this);
                this.add(item);
            }
            
            this.loaded = true;
    
            if (visible) {
                this.show();
            }    
            this.fireEvent('load', this, records);
        },

Thread Participants: 1