Textblock doesn't bind text property

I want to change text on node automatically.

So I tried below ,

this.myDiagram.nodeTemplateMap.add(“Param”,
$(go.Node, “Auto”,
$(go.Shape, “Rectangle”,
{ fill: “#f68f3a”, width:120, height: 30,stroke: null },
new go.Binding(“fill”, “color”)),
$(go.TextBlock,‘Parameter’,
{
margin: 5,
editable: true,
font: “bold 13px sans-serif”,
opacity: 0.75,
stroke: “#404040
},
new go.Binding(“text”, “text”).makeTwoWay())
));

and where I want to occur change text ,

this.myDiagram.model.startTransaction(“textchange”)
var node = this.myDiagram.findNodeForKey(val.key)
this.myDiagram.model.setDataProperty(node.data, “text”, val.paramNm)
this.myDiagram.model.commitTransaction(“textchange”)

When I check node data(this.myDiagram.mode.toJson()), “text” property is changed, but text on the diagram(node) is not change…

There is no error on console.

How can I fix it?

Your code looks OK to me, except for an unrelated possible problem. (Do you really want to set the Shape’s width and height rather than the “Auto” Panel’s?)

Can you show us how to reproduce the problem?