Just a minor issue. In the Kanban Board Exampleselectable: false is missing for the groupTemplate. This leads to problems when trying to select all nodes using Ctrl + A.
Edit: To be more specific: When selecting all nodes using Ctrl + A and dragging them to another lane, nothing happens, because the groups are also included in the selection.
Actually, it’s a bit more complicated than that, because with your suggested change when the user has selected a few nodes and then clicks in a blank area in a lane/group, the selection is not cleared. Whereas if they clicked on the window background, the selection is cleared. I think most people would want a click on a group in that sample to clear the selection, so I have added a click handler on the group:
myDiagram.groupTemplate =
$(go.Group, "Vertical",
{
selectable: false,
selectionObjectName: "SHAPE", // even though its not selectable, this is used in the layout
layerName: "Background", // all lanes are always behind all nodes and links
layout: $(go.GridLayout, . . .
click: function(e, grp) { // allow simple click on group to clear selection
if (!e.shift && !e.control && !e.meta) e.diagram.clearSelection();
},
. . .