I am using ExtJs 3.4.
When i set value to Ext.ux.form.MultiSelect, I am getting this error.
"Uncaught TypeError: Cannot read property 'clearSelections' of undefined in MultiSelect.js:245".
If I have to clear the selected values in "Ext.ux.form.MultiSelect" before setting the selected values, then how can i do that.
Please give suggestions for this.
If you mean this component, then in
setValuemethod there is call tothis.view.clearSelections(), and that probably causes issues.viewis created inonRendermethod. So your combo is probably not rendered when you callsetValue.I see 3 solutions:
setValuesetValuewhen it is, assignvaluewhen it isn'tMultiSelectand fix it