PDA

View Full Version : Cannot read property 'isModel' of undefined in window when close



kamalakarreddy vancha
11 Nov 2014, 1:25 AM
Hi..
I am using Extjs 4.2.3 version.
When close the window is giving the error like
Cannot read property 'isModel' of undefined .

Why it is coming....???
Help me in this....



Thanks In Advance
Kamalakar Reddy

joel.watson
12 Nov 2014, 2:00 PM
Hi..
I am using Extjs 4.2.3 version.
When close the window is giving the error like
Cannot read property 'isModel' of undefined .

Why it is coming....???
Help me in this....



Thanks In Advance
Kamalakar Reddy

Hi Kamalakar--

Can you provide some more detail about this error? Which window are you referencing (I'm assuming an Ext.window.Window instance?), and what is its configuration?

Thanks!

kamalakarreddy vancha
12 Nov 2014, 8:48 PM
Hi..
thanks for your reply...
Now its resolved..
Actually am using Ext.getCmp('gridId').store.remove(record.raw.nameDto) in beforeclose listener.
But In this store instead of nameDto, roleDto value coming from server.
So it is giving Cannot read property 'isModel' of undefined Error when am closing this window.
Now i replaced Ext.getCmp('gridId').store.remove(record.raw.nameDto) with
Ext.getCmp('gridId').store.remove(record.raw.roleDto ).
Then it is working fine.....
Thanks
Kamalakar Reddy