I followed the example in the Showcase that shows an editable TreeGrid.
Here’s my code:
However, this does not produce the same results for me as show in the showcase. When I double click on a node it doesn’t make it editable.
Here’s my code:
Code:
ResultTree tree = new ResultTree(); tree.setDataSource(new Conversation().getDataSource()); tree.setModelType(TreeModelType.PARENT); tree.setID("ID"); tree.setParentIdField("Category"); tree.setRootValue(1); tree.setIsFolderProperty("IsFolder"); setLoadDataOnDemand(false); setNodeIcon(Images.CONVERSATION_LEAF.getFileName()); setFolderIcon(Images.CONVERSATION_FOLDER.getFileName()); setData(tree); setCanEdit(true); setAutoFetchData(true); setCanFreezeFields(true); setCanReparentNodes(true); setAnimateFolders(true); setAnimateFolderSpeed(100);
Comment