문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top