Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Cyril Byrne on Oct 20, 2009 00:28
open dhtmlx forum
enableMultiLineItems in dhtmlXTreeObject - Object doesn't support this property or method ?

I have a tree object on the page and need to enable multiline as per the documentation, however I keep getting a javascript error, object doesn't support property or method..

simple code as follows..

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title> New Poulate Screen</title>
        
<link href="default.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="codebase/dhtmlxtree.css">

<script src="codebase/dhtmlxcommon.js"></script>
<script src="codebase/dhtmlxtree.js"></script>
</head>

<body>    
<div id="outer">        
<div id="content">
    
<div id="populateholder">
<div id="treeBox"></div>
</div>
            
<script language="javascript" type="text/javascript">
var tree = new dhtmlXTreeObject("treeBox","100%","100%",0);
tree.setImagePath("codebase/imgs/");
tree.setSkin('dhx_skyblue');
tree.enableMultiLineItems(true);

tree.enableDragAndDrop(true);
tree.loadXML("newpopdb.php");
</script>

</div>    <!-- end content -->
</div> <!-- end outer -->

</body>
    
</html>
Answer posted by Alex (support) on Oct 20, 2009 05:27

enableMultiLineItems is provided only with pro edition:

http://www.dhtmlx.com/dhxdocs/doku.php?id=dhtmlxtree:api_method_dhtmlxtreeobject_enablemultilineitems

What tree edition do you use ?