Menu
  • HOME
  • TAGS

How to populate Selected column in ItemSeclector with default values in Ext-JS

javascript,extjs,itemselector

You should use the setValue method of your itemselector field. Your listeners object should look like this: listeners: { afterrender: function(field) { //Add the field argument to the afterrender var a = []; // The setValue method receives an Array for(var key in data) { a.push(data[key].name); } field.setValue(a); } }...