Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Upgrade from 3.3.1 to 4.2.0 (Read 305 times)
Shivank Singh MCH
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 1
Joined: Jan 23rd, 2024
Upgrade from 3.3.1 to 4.2.0
Jan 24th, 2024 at 10:56am
Print Post  
Hi everyone,

I upgraded the MindFusion.Diagramming.Mvc from 3.3.1 to 4.2.0 and the issue arises
"MindFusion.Diagramming.DiagramNode.MasterGroup.get returned null.
"
I already initialise and assign value to DiagramNode class, which has object refrence but it gives null for MasterGroup attribute.

Initialise :
var x= d.Factory.CreateShapeNode(0 + xOffset, 0, BOX_WIDTH, BOX_HEIGHT * pathLenth, Shapes.Rectangle);
x.Text = GetStringBuilderFromPath(l.y_PATH).ToString();
x.Locked = true;
x.Id = l.y_ID;
x.Tag = "y ::" + l.y_ID;
x.Brush = new MindFusion.Drawing.SolidBrush(COLOR_LOC);

access:

ContainerNode c = (ContainerNode)x.MasterGroup.MainItem;
(here it gives the null for MasterGroup )

NOTE :: ABOVE CODE WAS WORKING FOR 3.3.1 VERSION  Sad Sad
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: Upgrade from 3.3.1 to 4.2.0
Reply #1 - Jan 24th, 2024 at 11:10am
Print Post  
Hi,

From v4 API changes section:

Quote:
- Server-side ContainerNode API is now consistent with client-side one. Containment is no longer implemented via a Group object and SubordinateGroup / MasterGroup properties. Instead, child nodes are now stored in the dedicated Children collection, and a node's container is returned by the Container property.


Please search for "API changes" here for other ones that could affect you since v3.3.1:
https://www.mindfusion.eu/onlinehelp/mvcdiagram/CC_Version_History_14.htm

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint