Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

How to use functions like findNodeForKey, findTreeChildrenNodes etc. in Virtualized Tree

$
0
0

@phreq wrote:

I made a Virtualized tree like from this sample:

https://gojs.net/latest/samples/virtualizedTreeLayout.html

I made the Virtualized tree as:

myWholeModel = $(go.TreeModel);
myDiagram.layout.model = myWholeModel;
myDiagram.model = $(go.TreeModel);

And populated it as:

myWholeModel.nodeDataArray = ndArray;

Now I want to use these functions but getting error when applying them on myWholeModel saying it cannot find the definition of these.

Without Virtualization, I could use these simply as :

myDiagram.findNodeForKey(NodeKey);

But how can I use these functions as well as startTransaction, setDataProperty etc in Virtualized Tree?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles