title: ExtJS column renderer
body: <p>My Problem is the renderer function of a column in a GridPanel in ExtJS 4. The record of the renderer should load an element of my list from my store, and it does; but it always loads the same element of the list.</p>
  
  <p>Here are relevant snippets of my code.</p>
  
  <p>First my Store:</p>
  
  <pre><code>var nStore = Ext.create('Ext.data.Store', {
      storeId: 'people',
      fields: ['team', 'name', 'liste', 'sums'],
      data: [{
          team: 'TestTeam', name: 'TestPerson',
          liste: ['F', 'F', 'F', 'S', 'N', 'F', 'S',
              'S', 'S', 'F', 'F', 'F', 'S', 'A', 'N',
              'S', 'S', 'S', 'S', '', '', 'N', 'N',
              'N', 'S', 'S', 'N', 'S', 'F', 'N', 'N'],
          sums: [[7, 4, 0, 0, 0, 0, 0], [3, 0, 0, 0, 0]]
      }]
  });
  </code></pre>
  
  <p>Then my column array where the renderer is:</p>
  
  <pre><code>var counter = 0;
  for (var i = 0; i &lt; Object.kws.length; i++) {
      var DayOfMonth = [];
      var DayOfWeek = [];
      for (var j = 0; j &lt; Object.kws[i].kwDays.length; j++) {
          var c = counter;
          DayOfMonth[j] = {
              text: '&lt;span style="font-size: 87%;"&gt;' 
                      + Object.kws[i].kwDays[j].day 
                      + '.&lt;br&gt;' 
                      + Object.kws[i].kwDays[j].dayOfWeek
                      + '.&lt;/span&gt;', sortable: false,
              draggable: false, menuDisabled: true,
              resizable: false, width: 40, align: 'center',
              renderer: function (value, meta, record) {
                  return record.data.liste[c];
  
              }
          };
          counter++;
      }
  }
  </code></pre>
  
  <p>The code is adapted and abridged.</p>
  
  <p>Here is a <a href="https://i.stack.imgur.com/rUgoE.jpg" rel="nofollow noreferrer">picture of the result</a>:</p>
  
  <p><img src="https://i.stack.imgur.com/rUgoE.jpg" alt="The Result"></p>
  
  <p>Normally the cells in the grid should show the counted element of the list in my Store.</p>
  
  <p>Can anyone help me understand what I am doing wrong?</p>