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
setValue
method there is call tothis.view.clearSelections()
, and that probably causes issues.view
is created inonRender
method. So your combo is probably not rendered when you callsetValue
.I see 3 solutions:
setValue
setValue
when it is, assignvalue
when it isn'tMultiSelect
and fix it