isSubGraphExpanded: DataBinding

Hi there

I’m using basic code to create my groupTemplate but have a need for selecting from data source whether isSubGraphExpanded is true of false

I’ve tried the following but to no avail, the calling code:

{ key: "nameX", isGroup: true, isGExpanded: true},

how do I get selective databound isSubGraphExpanded to work?

<br />myDiagram.groupTemplate =<br /> $(go.Group, go.Panel.Auto, //set the whole diagram<br /> { layout: $(go.LayeredDigraphLayout,<br /> { direction: 90, columnSpacing: 10 }), <br /> { isSubGraphExpanded: false },<br /> new go.Binding("isSubGraphExpanded","isGExpanded")<br /> },<br /> $(go.Shape, // surrounds everything<br /> { figure: "RoundedRectangle", parameter1: 10,<br /> fill: "rgba(128,128,128,0.33)" },<br /> new go.Binding("fill", "color")), // shape.fill = data.color<br /> //),

Many thanks in advance,

best regards

Do users or does your app sometimes collapse or expand groups?
If so, try calling .makeTwoWay() on that Binding.

You might want to indent your code so that it is more easily understood. It appears that a close-curly-brace is mis-positioned.