I don't know how to get the values of the MULTI select list.
I have tried to use the method getSelection; however, I'm getting an error that it's undefined. Here's my code:
refs : {
optionlist : 'Overlayitemlist',
},
var reco= Ext.getCmp('optionlist').getSelection() ;
Here's the error:
Uncaught TypeError: Cannot call method 'getSelection' of undefined
Where am I going wrong?