-
12 Feb 2013 10:56 AM #1
[4.2.0.265] selection.Model undefined focuschange arguments
[4.2.0.265] selection.Model undefined focuschange arguments
Browser: firefox 18.0.2
Test code:
Steps to reproduce the problem:Code:Ext.onReady(function() { Ext.create('Ext.container.Viewport', { layout: 'border', items: [ { region: 'center', xtype: 'grid', id: 'grid', store: Ext.create('Ext.data.Store', { fields: [ {name: 'id', convert: null, defaultValue: undefined}, {name: 'title', convert: null, defaultValue: undefined} ] }), columns: [ { text: 'ID', dataIndex: 'id' }, { text: 'Title', dataIndex: 'title' } ], listeners: { afterrender: function (grid) { grid.getSelectionModel().on({ focuschange: function (sm, oldFocused, newFocused, eOpts) { console.log('oldFocused = ' + String(oldFocused) + '; newFocused = ' + String(newFocused)); } }); } } }, { region: 'north', xtype: 'buttongroup', items: [ { text: 'fill grid', handler: function () { var grid = Ext.getCmp('grid'), store = grid.getStore(); for (var i = 0; i <= 99; i++) store.add({id: i, title: 'title' + i}); } } ] } ] }); });
1) Fill grid
2) Click on any row
3) See into the console
Result:
oldFocused = undefined; newFocused = undefined
-
14 Feb 2013 7:31 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,703
- Vote Rating
- 435
Thanks for the report! I have opened a bug in our bug tracker.
You found a bug! We've classified it as
EXTJSIV-8665
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote