Layout donot show cell text on extendint

[code]var initializeDHTMLX;
var initializeDHTMLX_data = {‘parent’:‘MyLayout1’,‘skin’:‘dhx_skyblue’,‘pattern’:‘3L’,‘cells’:[{‘id’:‘a’,‘text’:‘T1’,‘width’:‘800’},{‘id’:‘b’,‘text’:‘abc’,‘width’:‘400’,‘height’:‘400’},{‘id’:‘c’,‘text’:‘T2’,‘height’:‘400’}]};

initializeDHTMLX = new dhtmlXLayoutObject(initializeDHTMLX_data);

initializeDHTMLX.setImagePath(“/tdhx/assets/4350a257/imgs/”);
initializeDHTMLX.cells(“a”).attachObject(“cell_A”);
initializeDHTMLX.cells(“b”).attachObject(“cell_B”);
var initializeDHTMLX1;
var initializeDHTMLX1_data = {“parent”:initializeDHTMLX.cells(“a”),‘skin’:‘dhx_skyblue’,‘pattern’:‘2E’,‘cells’:[{‘id’:‘a’,‘text’:‘T1_a’},{‘id’:‘b’,‘text’:‘T1_b’}]};

initializeDHTMLX1 = new dhtmlXLayoutObject(initializeDHTMLX1_data);

initializeDHTMLX1.setImagePath(“/tdhx/assets/4350a257/imgs/”);
initializeDHTMLX1.cells(“a”).attachObject(“cell_AA”);[/code]

In initializeDHTMLX1 cells, it could’t show cell text.

Why?
:frowning:

Hi,

object configuration can be applied for layouts that take html container as parent parameter not a cell. For this reason, please use the following:

var initializeDHTMLX1 = initializeDHTMLX.cells(“a”).attachLayout(‘2E’,‘dhx_skyblue’);
initializeDHTMLX1.cells(“a”).setText(“T1_a”);
initializeDHTMLX1.cells(“b”).setText(“T1_b”);
initializeDHTMLX1.setImagePath("/tdhx/assets/4350a257/imgs/");
initializeDHTMLX1.cells(“a”).attachObject(“cell_AA”);

Thanks.

But It’s a pity .