How to attach TreeGrid to layout

Dear all,

myTreeGrid = main_layout.cells(‘c’).attachTreeGrid();

told me “attachTreeGrid is not an function” but in your documention it´s exaclty this the way

myTreeGrid = main_layout.cells(‘c’).attachGrid();

it´s fine but no TreeGrid.

How to attach a TreeGrid???

Found the solution.

Please show us your solution, i have the same problem.

You need to use the attachGrid() method.
There is no separate method for the treegrid.

the api shows me component.cells(id).attachtreegrid, but is not a function


Here you can find a working example:
Thank you for your note. The mistake in the docs will be fixed as soon, as it is possible.