I am trying to just select an item from the drop-down list after loading it into the repository. This does not work:
Ext.getCmp('ddlModel').setValue(aircraftStore.getAt(0).data.ModelTypeCode);
This throws an exception:
Ext.getCmp('ddlModel').selectByValue(aircraftStore.getAt(0).data.ModelTypeCode);
Here is the exception: 'this.view' is null or not an object
Does anyone know how to do this in ExtJs?
source share