title: ExtJS 4: grid: how to select a newly created record?
body: <p>My question is so simple it's in the title!</p>
  
  <p>Here's my code:</p>
  
  <pre><code>userCreate: function(button) {
      var grid = button.up('panel'),
          store = grid.getStore();
  
      /* Create new empty record */
      var inst = store.add({})[0];
      store.sync();
      /* select the newly created record */
      grid.getSelectionModel().select(inst.id);
  
      Ext.create('GS.view.user.Edit', { create:true }); 
  },  
  </code></pre>
  
  <p>Now I just want the line after the</p>
  
  <pre><code>    /* select the newly created record */
  </code></pre>
  
  <p>to work!</p>
  
  <p>I've tried many things but none of them work:</p>
  
  <pre><code>    grid.getSelectionModel().select(inst.id);
      grid.getSelectionModel().select(inst);
      grid.getSelectionModel().select(store.last);
  </code></pre>
  
  <p>Any idea?</p>
  
  <p>Thank you very much</p>