Attaching a html string gets attached in the same cell

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… :slight_smile:

Hi

Could you please provide us complete demo including all correspondnig js/css files?
Please also add information regarding current and expected behaviour.

Here is a small guide how to make a complete demo:
docs.dhtmlx.com/tutorials__auxil … pport.html

If you don’t want to share your demo here for any reasons - you can send it to support@dhtmlx.com, if so - please include link to this forum topic.

If you’re using PRO Edition please send your demo to support@dhtmlx.com