js library naming conflict

Hi there, I v got a problem when I am using dhtmx tree grid and grid together:

there is a method “addRow” in each of the two classes. I when I want to add a row to a simple grid object, it calls the one of treegrid.

because I have to include both the js files into my page, how can I solve this problem?

Thanks a lot!



Bo

If you have grid and treeGrid on your page you should create 2 different objects: for grid and for the treeGrid. If you apply addRow() method to the grid object, new row could be added only to the grid.