title: ExtJS — How to load store data manually after ajax call?
body: <p>I rewrite my working <a href="https://fiddle.sencha.com/#view/editor&amp;fiddle/28nq" rel="nofollow noreferrer">Fiddle</a> from <code>ajax</code> proxy type to <code>memory</code>. I'm trying to load <code>memory</code> store data manually:</p>
  
  <pre><code>// app/model/Employees.js file
  Ext.define('Fiddle.model.Employees', {
      extend: 'Ext.data.Model',
      entityName: 'Employees',
  
      fields: [
          {
              name: 'profile_pic'
          },
          {
              type: 'int',
              name: 'age'
          },
          {
              type: 'string',
              name: 'last',
              mapping: 'name.last'
          },
          {
              type: 'string',
              name: 'first',
              mapping: 'name.first'
  
          },
          {
              type: 'string',
              name: 'email'
          }
      ],
  
      proxy: {
          type: 'memory',
          reader: {
              type: 'json',
              rootProperty: 'items',
              totalProperty: 'total',
              successProperty: ''
          }
      }
  });
  
  // app/store/Employees.js file
  Ext.define('Fiddle.store.Employees', {
      extend: 'Ext.data.Store',
      pageSize: 30, // items per page
      alias: 'store.employees',
      model: 'Fiddle.model.Employees',
  });
  
  //app.js fule - launch() function
  var store = Ext.create('Fiddle.store.Employees');
  console.log(store);
  
  
  Ext.Ajax.request({
      url: 'mates.json',
      success: function(resp) {
          var result = resp.responseText;
          console.log(result);
          // store.loadRawData(result);
          store.loadData(result);
          console.log(store);
          console.log(store.getAt(0));
      },
  });
  </code></pre>
  
  <p>As result I have 3386 records in store, every symbol in my json file. And what I see in console as first record:</p>
  
  <p><a href="https://i.stack.imgur.com/hwlG8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hwlG8.png" alt="enter image description here"></a></p>
  
  <p>What I'm doing wrong?</p>
  
  <p>And where I need to put <code>proxy</code> lines - in model or in store?</p>