I have layout pattern like dis… First 2E then for 2E(for cell “b”) attached another layout 3L and again to the 3L(cell “a”) attached a pattern 2E…
Below is my code…
var htmlString=“
document.getElementById(“layout”).style.height = document.body.offsetHeight-20;
ParentLayout = new dhtmlXLayoutObject({parent: “layout”,pattern:“2E”});// parent layout
ParentLayout.cells(“a”).hideHeader();
ParentLayout.cells(“b”).hideHeader();
leftlayout= ParentLayout.cells("b").attachLayout({pattern: "3L"});
rightLayout= leftlayout.cells("a").attachLayout({pattern: "2E"});
//rightLayout.cells(“b”) attached with a grid
rightlayout.cells(“b”).attachHTMLString(htmlString);//grid gets loaded
evtloadQueryGrid(‘MCONNECTORINIT’, ‘MCONNECTORINIT_MAIN’,sysid);
//for the rightLayout.cells(“b”) whenever a grid row is selected, another grid is attached to the
leftLayout.cells(“b”) with the below code
function displayMessageQueryGrid(connector_id){
msgRulesLayout.cells(“b”).attachHTMLString(htmlString);
loadQueryGrid(‘MMESSAGETYPES’, ‘MMESSAGETYPES_MAIN’,connector_id);
}
And for the leftLayout.cells(“b”) whenever a grid row is selected, another grid is attached to the
rightLayout.cells(“c”) with the below code… (problem is here grid gets attached into leftLayout.cells(“b”) )
function displayMessageQueryGrid(connector_id){
extCnleftLayout.cells(“c”).attachHTMLString(htmlString);
loadRulesQueryGrid(‘MRULES’,‘MRULES_MAIN’,messageID);
}
I am able to attachhtml to a child from parent but from child too parent its not possible
Kindly help in resolving this out problem…