Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Igor on Jun 10, 2008 06:50
open dhtmlx forum
DHTMLTreeGrid Error

Since dhtmlxGrid_pro_v16_80512 the component "dhtmlxTreeGrid" don't work

Every time I try I get this error:

'this._process_tree_xml is not a function'

Any suggestions?

Code:

<script src="dhtmlxcommon.js"></script>
<script src="dhtmlxgrid.js"></script>        
<script src="dhtmlxgridcell.js"></script>
<script src="dhtmlxtreegrid.js"></script>

<div id="gridbox" width="100%" height="250px" style="background-color:white;overflow:hidden"></div>

<script>
    mygrid = new dhtmlXGridObject('gridbox');
    mygrid.setImagePath("imgs/");
    var flds = "id,camp1, camp2,camp3";
        mygrid.setHeader(flds);
        mygrid.setInitWidths("150,150,120,120")
        mygrid.setColAlign("right,left,left,right")
        mygrid.setColTypes("tree,ed,ed,ed");
        mygrid.setColumnIds("Test1,Test2,Test3,Test4")
        mygrid.setSkin("light");
        mygrid.setColSorting("str,str,str,str")
    mygrid.init();

//=================================
    mygrid.loadXML("test.xml");
    myDataProcessor = new dataProcessor("update.php");
    myDataProcessor.enableDataNames(false);
    myDataProcessor.setUpdateMode("cell");
    myDataProcessor.setTransactionMode("GET");
    myDataProcessor.init(mygrid);
//=================================

</script>
Answer posted by Support on Jun 10, 2008 09:32
Please be sure that you updated both codebase for dhtmlxgrid and codebase for dhtmlxtreegrid.
You need to use both Grid and TreeGrid files from the same version, the mentioned error occurs when files updated only partially ( dhtmlxgrid.js was updated to 1.6, while dhtmlxtreegrid.js used from version 1.5 )