PDA

View Full Version : ItemSelector configuration - hidden as true gives error



shkamboj
24 Jan 2012, 5:09 PM
Hello ,
I am using ItemSelector for one of the views in my application . The requirement is such that when the view is rendered the ItemSelector should be hidden and on click of a form field it will be visible . Problem is if i set hidden as true to ItemSelector then the view doesn't render and shows error as -



Uncaught TypeError: Cannot call method 'remove' of undefined
Ext.define.beforeLayoutext-all-debug.js:21466
Base.callParentext-all-debug.js:2874
Ext.define.beforeLayoutext-all-debug.js:69039
Ext.define.layoutext-all-debug.js:20530
Ext.define.doComponentLayoutext-all-debug.js:17344
Ext.define.refreshext-all-debug.js:70526
fireext-all-debug.js:10628
Ext.define.fireEventext-all-debug.js:13810
Ext.define.removeAllext-all-debug.js:45656
Ext.define.bindStoreItemSelector.js:66
Ext.define.onRenderItemSelector.js:160
Ext.define.render

I verified that the code is trying to call remove method on layoutcollection and layoutcollection is 'undefined' in this case . If i remove the 'hidden:true' from the configuration, itemSelctor works fine .

Can anyone please help in this ?

Thanks

jay@moduscreate.com
25 Jan 2012, 11:32 AM
Please do not double post. http://www.sencha.com/forum/showthread.php?176439-ItemSelector-hidden-true-property-gives-error&daysprune=5