attachTreeGrid()

Hi,

I’m currently using ‘attachObject(id)’ to attach a TreeGrid to a dhtmlxWindow object.
When resizing the window, the attached object is not resized. Looking through the forums and the examples, ‘attachTreeGrid()’ looks as if it should solve the issue. However, the attachTreeGrid() function does not seem to be part of the dhtmlx library.

The method ‘attachTreeGrid()’ is documented in ‘dhtmlxwindows___integration_with_other_components.html’, but grepping through the sources gives no results. ‘attachTree()’ and ‘attachGrid()’ both works though.

We are using dhtmlxSuite_v25_pro_91111

Hi,

However, the attachTreeGrid() function does not seem to be part of the dhtmlx library.

make sure that you have included dhtmlxcontainer.js (it is in there dhtmlxWindows/codebase folder)

there is the sample in suite package:

dhtmlxSuite/dhtmlxWindows/samples/08_components/03_treegrid.html

I checked that file and could not find such a method at all :confused:
However attachGrid() works fine with tree grid.
Looks like this method attachTreeGrid() is totally unnecessary as both grid and tree grid have the same base object for initialization.
Please correct me if I’m wrong.

Sorry, for the misleading information. Yes, you are right. Treegrid is grid extension and it is attached by attachGrid() method.

You need to correct documentation pages as well:
docs.dhtmlx.com/doku.php?id=dhtm … components

explaining to others that treegrid shall be attached as grid

UP

documenation is still incorrect …

I wasted 30 minutes to understand why it didn’t work …

Please Correct !!!

Hi
We’ve corrected it.

Thank you, Darya