View Full Version : Update initialConfig from within Controller

Michael Waters
21 Mar 2014, 10:00 AM
I'm trying to update combobox initial configuration from within my controller. I'm using the following code to overwrite my combobox initialConfig of 'multiSelect: true' from within my controller code.

var mainCombo = this.getMainCombo();
Ext.apply(mainCombo.initialConfig, {multiSelect: false});

Is this possible to do or how should I go about doing this?


Johnny Major
23 Mar 2014, 8:09 AM

Just update the multiSelect directly on the combo.

Ext.apply(mainCombo, {multiSelect: false});

Michael Waters
23 Mar 2014, 10:37 AM
thanks, that worked perfectly