Question

I'm trying to migrate from dynatree to fancytree. Even if I try returning the simplest json array from my webmethod I get the error in the subject title: "Uncaught Error: Assertion failed: expected array of children"

The json returned as shown in chrome network tab is:

{"d":[{"__type":"test","title":"title1"},{"__type":"test","title":"title2"},{"__type":"test","title":"title3"}]}

The exact same json array works perfectly in dynatree. What has changed in the fancytree implementation to break the json compatibility? This is driving me insane.

Was it helpful?

Solution

This has now been fixed in a recent release of fancytree which has reinstated the automatic population of the object array if the "d" object is present.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top