js order

i am using :-
dhtmlxtree.js
dhtmlxgrid.js
dhtmlxtreegrid.js
at the same page in my project .

if i am order js file as above dhtmlxtreegrid.js working properly but dhtmlxgrid.js which loads all
the data but showing just one value.

But if i am using :-
dhtmlxtreegrid.js
dhtmlxtree.js
dhtmlxgrid.js

if i am order js file as above dhtmlxgrid.js which loads all the data and also showing all value .
but its showing javascript error enableTreeCellEdit is not a function

please tell me how can i order my js ?

THis is the correct order of js files and it should work well.
Please, provide a sample of your code to reconstruct the issue.