PDA

View Full Version : [2.2][DUP] Check Box component Not working with Ext.window - this.wrap undefine



vijaypr.chak
25 Aug 2008, 6:42 AM
Hi,
We are using a ext checkbox component which is defined as below,

xtype": "checkbox",
"id": "noteForm_propagate",
"fieldLabel": "Propagate Note to Related",
"widthFactor" : -1,
"showOn": "new",
"name": "propagate"


"xtype": "panel",
"id": "noteForm_propagaterules",
"html": test",
"name": "cannotpropagate"

and called from a javascript file as below


this.editNoteWindow.checkComponent = function(theContainer, theComponent, itemIndex){
if(theComponent.id)
{
if(theComponent.id == "noteForm_propagate")
{
return(false);
}

if(theComponent.id == "noteForm_propagaterules")
{
return(true);
}
}

The issue is for all cases that is returning false, browser throws back this.wrap undefined error, i.e, for noteForm_propagate cases above.

This was working fine with ext2.1, but throws this.wrap undefined error with ext2.2

Is there any changed made to Ext.window in 2.2, since "editNoteWindow" above extends Ext.window and it seems checkComponent is not a property of Ext.window any more.

Any help appreciated
I also verified all the threads in this forum, but could not a find a near match.

Thanks.

Condor
25 Aug 2008, 6:57 AM
This is a duplicate of this post (http://extjs.com/forum/showthread.php?t=43356).

I also recommend reading this bug (http://extjs.com/forum/showthread.php?t=44603).

vijaypr.chak
26 Aug 2008, 8:46 AM
Hi-
Thanks for the reply.
I made the necessary changes in ext-all-debug.js, suppose i am changing in the right place, but still struck with same issue.
Is the latest fix available in SVN? or when it is expected.