Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJSIV-9003 in 4.2.1.
  1. #1
    Sencha Premium Member joshua.ball@osi.com's Avatar
    Join Date
    Nov 2012
    Location
    Sacramento, CA
    Posts
    34
    Vote Rating
    0
    joshua.ball@osi.com is on a distinguished road

      0  

    Default ExtJS 4.1.3 - Possible Bug with Ext.Grid.Panel

    ExtJS 4.1.3 - Possible Bug with Ext.Grid.Panel


    Hello All,

    I've run across a strange behavior with a grid panel that has the MULTI mode enabled in its selection model. This only occurs when making a range selection (Shift+click). Any rows that have been selected prior to the range selection (and are outside of the new range) do not fire a deselect event when the new range selection is made. There is enough logic to remove the "x-grid-row-selected" CSS classes from the table rows that have been deselected, but the event doesn't fire. I've only been able to create this behavior with range selection. Deselecting records one at a time from a selection (Ctrl+click) works as expected.

    I'm using the ext-all-dev version of ExtJS 4.1.3.

    -Josh

    Code:
    new Ext.grid.Panel({
        renderTo  : document.body,
        title     : 'Test',
        store     : {
            fields : ['foo'],
            data   : [
                { foo : 1  },
                { foo : 2  },
                { foo : 3  },
                { foo : 4  },
                { foo : 5  },
                { foo : 6  },
                { foo : 7  },
                { foo : 8  },
                { foo : 9  },
                { foo : 10 }
            ]
        },
        columns   : [
            {
                header    : 'Foo',
                dataIndex : 'foo',
                flex      : 1
            }
        ],
        selModel  : {
            type : 'rowmodel',
            mode : 'MULTI'
        },
        listeners : {
            deselect : function () {
                console.log('deselect');
            }
        }
    });
    Last edited by mitchellsimoens; 7 Mar 2013 at 9:40 AM. Reason: Added testcase to post

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,107
    Vote Rating
    453
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha Premium Member joshua.ball@osi.com's Avatar
    Join Date
    Nov 2012
    Location
    Sacramento, CA
    Posts
    34
    Vote Rating
    0
    joshua.ball@osi.com is on a distinguished road

      0  

    Default


    NP; thanks for the quick response!

Tags for this Thread