Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Bo LEI on Jul 08, 2009 03:29
open dhtmlx forum
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
Answer posted by dhxSupport on Jul 08, 2009 05:09
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.