Issue with Save/Load JSON

Hi,

I have a problem with save/load JSON function. While editing i needed to change the stroke color and fill color of a particular shape in canvas then i saved to json. Then i loaded back and that shape couldn’t restore the color that i had changed for it. It seems that the JSON doesn’t hold the info about the stroke or fill color. Any help to get load that shape with the color i changed?

Thanks,
Vu

Make sure that the Binding of the Shape’s color to your node data property is a TwoWay binding. Then when your code modifies the Shape.fill or Shape.stroke, the model data is updated automatically.

Read about TwoWay Bindings at http://www.gojs.net/latest/intro/dataBinding.html, and search the samples for them.

yah . thanks for that :D