ksachdeva
5 Jun 2007, 12:57 PM
Node cannot be inserted at the specified point in the hierarchy" code: "3
this.bodyEl.dom.appendChild(panel.getEl().dom);
Above is an error shown by firebug.
Here is what I am doing:
var dlg = new Ext.LayoutDialog(config.id || Ext.id(), {
autoCreate : true,
minWidth:400,
minHeight:300,
shadow:true,
fixedcenter:true,
center:{
autoScroll:false
},
closable : false,
draggable : false,
collapsible : false,
resizable : false,
east:{
split:true,
initialSize:150,
minSize:150,
maxSize:250
}
});
var innerLayout = new Ext.BorderLayout(dlg.getEl(), {
autoCreate:true,
north: {
initialSize: 200,
autoScroll:true,
split:true
},
center: {
autoScroll:true
}
});
innerLayout.beginUpdate();
innerLayout.add("north", new Ext.ContentPanel("dl-details",{autoCreate:true}));
innerLayout.add("center", new Ext.ContentPanel("selection-panel",{autoCreate:true}));
innerLayout.endUpdate(true);
var vp = layout.add('center', new Ext.ContentPanel(Ext.id(), {
autoCreate : true,
toolbar: this.tb,
fitToFrame:true
}));
// EXECUTION OF THIS LINE GIVES AN ERROR
var dp = layout.add('east',new Ext.NestedLayoutPanel(innerLayout,{
autoCreate:true
}));
layout.endUpdate();
It is to some extent similar to Layoutdialog example that comes with the extjs but I am trying to add two panels in the "east" region.
Would really appreciate if you somebody could point out what I am doing wrong. Please note that I am creating the dialog and its contents using the script and hence autoCreate.
Regards & thanks
Kapil
this.bodyEl.dom.appendChild(panel.getEl().dom);
Above is an error shown by firebug.
Here is what I am doing:
var dlg = new Ext.LayoutDialog(config.id || Ext.id(), {
autoCreate : true,
minWidth:400,
minHeight:300,
shadow:true,
fixedcenter:true,
center:{
autoScroll:false
},
closable : false,
draggable : false,
collapsible : false,
resizable : false,
east:{
split:true,
initialSize:150,
minSize:150,
maxSize:250
}
});
var innerLayout = new Ext.BorderLayout(dlg.getEl(), {
autoCreate:true,
north: {
initialSize: 200,
autoScroll:true,
split:true
},
center: {
autoScroll:true
}
});
innerLayout.beginUpdate();
innerLayout.add("north", new Ext.ContentPanel("dl-details",{autoCreate:true}));
innerLayout.add("center", new Ext.ContentPanel("selection-panel",{autoCreate:true}));
innerLayout.endUpdate(true);
var vp = layout.add('center', new Ext.ContentPanel(Ext.id(), {
autoCreate : true,
toolbar: this.tb,
fitToFrame:true
}));
// EXECUTION OF THIS LINE GIVES AN ERROR
var dp = layout.add('east',new Ext.NestedLayoutPanel(innerLayout,{
autoCreate:true
}));
layout.endUpdate();
It is to some extent similar to Layoutdialog example that comes with the extjs but I am trying to add two panels in the "east" region.
Would really appreciate if you somebody could point out what I am doing wrong. Please note that I am creating the dialog and its contents using the script and hence autoCreate.
Regards & thanks
Kapil