Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Karthic on Sep 25, 2009 02:23
open dhtmlx forum
TreeGridLines

getting object doesn't support this property error wneh tried to use
ltree.enableTreeGridLines(true);
I hvae included dhtmlxtreegrid_lines from dhtmlxTreeGrid\codebase\ext, still i get the same error.

code snippet:


function displayLeftTree(gci) {

        ltree = new dhtmlXGridObject(LEFT_TREE_DIV_ID);
        ltree.selMultiRows = true;
        ltree.setImagePath("dhtmlxTreeGrid/images/dhtmlx/");
        
        

        ltree.setHeader("Name,ID,Role,OMS,Unit, Descr,Primary");
        ltree.setInitWidths("480,90,130,50,50,110,50")
        //ltree.cellWidthType="%"
        //ltree.setInitWidthsP("35,17,12,12,12,12")
        ltree.splitAt(2)
        ltree.setColAlign("left,left,left,left,left,left")
        ltree.setColTypes("tree,ro,ro,ro,ro,ro");


        ltree.setColSorting("str,str,str,str,str,str");
    ltree.enableDragAndDrop(true);
        ltree.attachEvent("onRowDblClicked", onRowDblClicked );
        ltree.attachEvent("onDrop", onLeftTreeDrop);
        ltree.attachEvent("onDrag", onDrag);
        //Begin Code for tree refresh
        ltree.attachEvent("onRowAdded", onRowAddedToRightGrid);
        //End Code for tree refresh
        //ltree.setOnDblClickHandler(aFunc);

ltree.enableSmartXMLParsing(false)

        lMenu = new dhtmlXMenuObject(null,"standard");
        //lMenu.attachEvent("onCheckboxClick", function(id, state) {
        //    alert("Click :: " + id + " State :: " + state);
        //    return true;
        //});
        //lMenu.setImagePath("images/dhtmlx/");
        lMenu.setImagePath("dhtmlxTreeGrid/imgs/");
        lMenu.setIconsPath("dhtmlxTreeGrid/images/dhtmlx/");
        lMenu.renderAsContextMenu();
        lMenu.setOpenMode("web");
        lMenu.attachEvent("onClick",onButtonClick);
        lMenu.loadXML("dhtmlxTreeGrid/_context.xml");
        ltree.enableContextMenu(lMenu);


        ltree.enableTreeGridLines(true); // getting error at this point


        ltree.init();         
        if(!isGciMatch()){
            ltree.loadXML("dhtmlxTreeGrid/mctu_tree_grid.xml");
        } else {
         if(rtree != null){
            rtree.setSerializationLevel(true,true);
            var myXmlStr = rtree.serialize();
            ltree.loadXMLString(myXmlStr,afterCallTest);
         } else {
         ltree.loadXML("dhtmlxTreeGrid/mctu_tree_grid.xml");
         }
        }
        lRelationshipLinkTypeMenu = new dhtmlXMenuObject("leftRelationshipLinkTypeSpan","clear_silver");
        lRelationshipLinkTypeMenu.setImagePath("dhtmlxTreeGrid/imgs/");
        lRelationshipLinkTypeMenu.setIconsPath("dhtmlxTreeGrid/images/dhtmlx/");
        lRelationshipLinkTypeMenu.setOpenMode("win");
        //lRelationshipLinkTypeMenu.renderAsContextMenu();
        lRelationshipLinkTypeMenu.attachEvent("onCheckboxClick",onRelationshipTypeFilterMenuClick);
        lRelationshipLinkTypeMenu.attachEvent("onAfterContextMenu",onAfterContextMenu);
        lRelationshipLinkTypeMenu.addContextZone("leftRelationshipLinkTypeSpan");
        lRelationshipLinkTypeMenu.loadXML("dhtmlxTreeGrid/_context2.xml");
    }
Answer posted by dhxSupport on Sep 25, 2009 08:53
Unfortunately we cannot reproduce this issue locally. Please check example here http://www.dhtmlx.com/docs/products/dhtmlxTreeGrid/samples/03_nodes_rows_manipulations/05_treeGrid_lines.html