Hello,
In version 8.1.9 it doesn’t work to insert a layout inside the cell of another layout, in version 8.0.3 it works.
This is the example and the error it generates.
https://snippet.dhtmlx.com/koe2zfck
Thank you.
Hello,
In version 8.1.9 it doesn’t work to insert a layout inside the cell of another layout, in version 8.0.3 it works.
This is the example and the error it generates.
https://snippet.dhtmlx.com/koe2zfck
Thank you.
Hi, the problem is because in the layout2 constructor you are passing layout.getCell(“C1”). After a certain version this way doesn’t work.
Now it is possible to do it in two ways that I remember, first:
Put all the code that creates layout2 inside dhx.awaitRedraw, which in this way will wait to create and render layout1 that will be available for you to create layout2 passing the cell id “C1” as a string in the constructor. This way:
https://snippet.dhtmlx.com/pwb9ztly
The second way is to create layout2 (you don’t need to put it inside awaitRedraw) passing null in the constructor, then you attach layout2 inside layout1, like this:
https://snippet.dhtmlx.com/dbl7kcpt
Holpe it helps you.
Hello,
Thank you very much, it works correctly.