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

fromJson (andToJson) - blank diagram

$
0
0

@DAMcK wrote:

On page load and diagram initialization, I load model data in JSON format and use myDiagram.model = go.Model.fromJson() and that works fine and dandy. On user action, I retrieve new JSON data via an Ajax api call and use that data in a .fromJson(newModelData). I get a blank diagram! I've even tried returning the exact data used at page load init but that gives a blank diagram too!

After Googling I found one answer on your forums where someone had similar issues and you suggest testing it with myDiagram.model = go.Model.fromJSON(myDiagram.model.toJSON()); When I try this, again I end up with a blank diagram.

Any help?

Posts: 13

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles