-
7 Mar 2013 9:29 AM #1
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
-
7 Mar 2013 9:40 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
Thanks for the report! I have opened a bug in our bug tracker.
-
7 Mar 2013 10:01 AM #3
NP; thanks for the quick response!
Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJSIV-9003
in
4.2.1.


Reply With Quote