@ramesh1 wrote:
Hi,
I am grouping objects using groupSelection(). But this grouping was not reflected in the diagram model object. so i tried the using the below in the contextmenu button click event.
var linkDataArray = [{ key: "Omega", isGroup: true }];var iteration = e.diagram.selection.iterator; wiDiagram.startTransaction('modified group'); while (iteration.next()) { wiDiagram.model.setDataProperty(iteration.value, "group", "Omega"); } wiDiagram.commitTransaction('modified group'); wiDiagram.model = new go.GraphLinksModel(linkDataArray);
The above code doesnt create group. Kindly guide me
Posts: 2
Participants: 2