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.
  1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    15
    Vote Rating
    0
    cs0ip is on a distinguished road

      0  

    Default [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:
    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});
                }
              }
            ]
          }
        ]
      });
    });
    Steps to reproduce the problem:
    1) Fill grid
    2) Click on any row
    3) See into the console

    Result:
    oldFocused = undefined; newFocused = undefined

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,599
    Vote Rating
    434
    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.