title: Sencha Touch Ext.picker setData not working correctly
body: <p>I have been trying to figure out why I am not able to update the Sencha Touch  picker  data field (see the code at the end of post) using setData method. I created an array called slotsdata where I defined my data. The data look exactly like this:  </p>
  
  <pre><code>{text: '50 KB/s', value: 50},  
           {text: '100 KB/s', value: 100},  
           {text: '200 KB/s', value: 200},  
           {text: '300 KB/s', value: 300} 
  </code></pre>
  
  <ol>
  <li><p>When I tried to set the data using setData()
  picker.setData(slotsdata);
  No error are displayed but picker does not display any data.</p></li>
  <li><p>When I tried to update the data like this:<br>
  <code>
  slots: [<br>
  {<br>
                      name : 'picker_slot1',<br>
                      title: 'slot1',<br>
                      data: [slotsdata]<br>
                  }<br>
              ]</code>
  It does not work. No errors in the console. The picker is empty.</p></li>
  <li><p>The only way I can update is using this syntax:  </p>
  
  <p><code>slots: [<br>
                  {<br>
                      name : 'picker_slot1',<br>
                      title: 'slot1',<br>
                      data: slotsdata<br>
                  }<br>
              ]</code>  </p></li>
  </ol>
  
  <p>I would like to be able to update my picker data using method #1. Can anyone help me with this issue. Any help will be appreciated.</p>
  
  <p>This is the code:</p>
  
  <pre><code>myFunction: function(){  
  var data = this.getData();  
  var slotsdata = [];  
  var pickerData = data.dosage.split(',');  
  for( var i = 0; i &lt; pickerData.length; i++ ){  
      slotsdata.push({text: pickerData[i], value: pickerData[i]})  
  }  
  var picker = Ext.create('Ext.Picker', {  
      slots: [  
          {  
              name : 'picker_slot1',  
              title: 'slot1',  
              data: slotsdata  
          }  
      ]  
  });  
  //this does not work  
  //picker.setData(slotsdata);  
  </code></pre>
  
  <p>}</p>