Thanks,
to expand node I used below code but nothing happening. please advice
myDiagram.nodeTemplate =
(go.Node, "Auto",
{
locationSpot: go.Spot.Top,
isShadowed: true, shadowBlur: 1,
shadowOffset: new go.Point(0, 1),
shadowColor: "rgba(0, 0, 0, .14)",
selectionAdornmentTemplate: // selection adornment to match shape of nodes
(go.Adornment, “Auto”,
(go.Shape, "RoundedRectangle", roundedRectangleParams,
{ fill: null, stroke: "#7986cb", strokeWidth: 3 }
),
(go.Placeholder)
) // end Adornment
},
$(“TreeExpanderButton”,
{
name: ‘TREEBUTTON’,
width: 20, height: 20,
alignment: go.Spot.TopRight,
alignmentFocus: go.Spot.Center,
// customize the expander behavior to
// create children if the node has never been expanded
click: function(e, obj) { // OBJ is the Button
obj.visible = false;
var node = obj.part; // get the Node containing this Button
if (node === null) return;
e.handled = true;
expandNode(node);
}
}
)