How to attach TreeGrid to layout


#1

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???


#2

Found the solution.


#3

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


#4

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


#5

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

image


#6

Here you can find a working example:
https://dhtmlx.com/docs/products/dhtmlxLayout/samples/04_attach_components/08_treegrid.html
Thank you for your note. The mistake in the docs will be fixed as soon, as it is possible.