Michael Littlewood

Member since: Thursday, 10 September 2015
Last login: 9 months ago
Profile viewed: 456 views

No Rank
Points: 0

I agree and wouldn't take much to do

Might be better to code the OnChange event directly in the treeview component to monitor changes in the JSONtext

Or use the OnChange of the JSONDocument to force a reload of the dataprocedure TForm1.Button1Click(Sender: TObject); begin JSONDocument1.JsonText := '{"name":"mike","value":1}'; end;procedure TForm1.JSONDocument1Change(Sender: TObject); begin JSO

I found if you set it at design time it was fine, but changing the JSON text on the JSONDocument linked to a JSONTreeview didn't update the nodes at runtime.Unhooking, then reassigning after setting the JSONText forced it to do a refresh JSONTreeVie