Hi.My name is Riccardo Esercitato and I am experimenting with DIAGRAM control and VB and ASP.NET.
I have a couple of problems, probably related to my inexperience.
1) I put three buttons in my page, one for a text node, one for an image node and one for a shpae node.
When I click on a button it creates the correct node. But when I click another button it clears the diagram and draw the new node.
I tried a "trick", saving diagram.nodes in a session variable, wich I restore at postback time, and it runs.
But is there a better way to make diagram persits its content after a postback?
2) I have downloaded your sample diagrambuildervbsample-2003273269 but I am not able to run it because it gives me an error.
Anyway I think that this instruction: DiagramContent.OnClientDrop = "nodeondrop" means that there must be a sub/function somewhere, called nodeondrop, wich will process that event. But I cannot find such name in your source code. I tried this in my program, but nothing happens.
So, how can I intercept nodes movement?
3) I need to put a background image on diagram. I tried this:
Diagram1.BackColor = Color.Transparent
Dim bckg As New Syncfusion.JavaScript.DataVisualization.Models.Diagram.BackgroundImage
bckg.Source = "images\1abotticino-corr.jpg"
Diagram1.Model.BackgroundImage = bckg
without success.
Is there a way to load a background image or should I create an Image node and dimension it like the diagram control and use it as a fake background?
Thanks a lot for any help
Riccardo ESERCITATO