Hi,
1. The events listed for the Diagram class are raised only in the Windows Forms version of the control (the mindfusion.diagramming.dll assembly is shared between ASP.NET and Windows versions). In NetDiagram's ImageMap mode you can handle only the event listed for the DiagramView class:
http://www.mindfusion.eu/onlinehelp/netdiagram/index.htm?T_MindFusion_Diagrammin...Perhaps you could use a large background node to detect clicks on the diagram by setting the following properties:
ZIndex = 0
IgnoreLayout = true
Locked = true
Transparent = true
Bounds = diagram.Bounds
Then the image map will contain a big rectangular area that should catch all clicks outside of other nodes' boundaries, and you can handle NodeClicked for that node as if the diagram background has been clicked.
2. It seems ImageMap mode does not support interactive folding of containers at all. You could fold them from a NodeClicked handler, e.g. this sample code folds a container when its caption bar is clicked:
protected void OnNodeClicked(object sender, NodeEventArgs e)
{
Debug.WriteLine("OnNodeClicked");
ContainerNode ctr = e.Node as ContainerNode;
if (ctr != null)
{
RectangleF rect = e.Node.Bounds;
rect.Height = ctr.CaptionHeight;
if (rect.Contains(e.MousePosition))
ctr.Folded = !ctr.Folded;
}
}
3. What .NET 3.5 components are you referring to exactly? I think VS2005 does not support .NET 3.5, so the samples from the VS2005/.NET 2 folder would not run if they have references to .NET 3.5 components. Samples that use mindfusion.extenders.dll require a separate MS Ajax Extensions for ASP.NET installation though - this was later integrated as standard part of ASP.NET, but it's a separate download for .NET 2.
I hope that helps,
Stoyan