We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Grouping nodes System.NullReferenceException

Thread ID:

Created:

Updated:

Platform:

Replies:

129921 Apr 10,2017 09:01 AM Apr 17,2017 04:53 AM WPF 5
loading
Tags: SfDiagram
Olivier Verhaegen
Asked On April 10, 2017 09:01 AM

Hello,

I am trying to group nodes to get a node that looks like the image atached in the zip file.
When I make a group and launch the app the group renders in the stencil. Once I drag the group to the diagram I get System.NullReferenceException.

Requirements:
- Dragging the group from stencil
- Editing annotations in each node
- Ports on each node in group
- Every square is a separate node



Attachment: NodeGroup_d3359d7b.zip

Ranjitha Amirthalingam [Syncfusion]
Replied On April 11, 2017 05:03 AM

Hi Olivier, 
 
Thanks for contacting Syncfusion Support. 
 
Please find the response to your queries as below. 
 
S.No 
Query 
Response 
1 
I am trying to group nodes to get a node that looks like the image attached in the zip file. 
When I make a group, and launch the app the group renders in the stencil. Once I drag the group to the diagram I get System.NullReferenceException. 
 
Reported issue: Null Reference Exception occurs while drag and drop the group from Stencil. 
 
We have already fixed the reported issue and the fix will be available in our Essential Studio 2017 Volume 1 Service pack 2 Release v15.1.0.41. Please download the build from the following link. 
                            
 
 
 
Please check the issue with our latest build and let us know whether the reported issue is resolved or not. 
 
2 
Requirements: 
- Dragging the group from stencil 
- Editing annotations in each node 
- Ports on each node in group 
- Every square is a separate node 
 
Yes, we have support to drag and drop the group from Stencil. Also, we can add port, annotations to every node inside group and edit the annotations of every node.  
 
 
 
 
 
 
Regards, 
Ranjitha A. 


Olivier Verhaegen
Replied On April 11, 2017 11:54 AM

Hi Ranjitha,

I had already installed version 15.1.0.41 but the error still occurs.
Is it possible to give me an example project on grouping nodes, I don't seem to find any for my requirements.

I want to make the node attached in my first post. 
The user needs to connect lines to every small rectangle wich are filled with text, it must also be possible to add rectangles to the NodeGroup.
Also it would be nice if the nodes could be moved with the arrow keys on the keyboard. How do I enable this function?

Thanks for your help.

Olivier Verhaegen

Ranjitha Amirthalingam [Syncfusion]
Replied On April 14, 2017 11:22 AM

Hi Oliver, 
 
Please find the response to your queries as below. 
 
S. No 
Query 
Response 
1 
I had already installed version 15.1.0.41 but the error still occurs. 
Is it possible to give me an example project on grouping nodes, I don't seem to find any for my requirements. 
 
 
We have provided sample to represent grouping of Nodes. Please refer to the sample from the below link. 
 
Sample Link:
GroupingNodes
 
 
2 
I want to make the node attached in my first post.  
 
We have represented the same in the provided sample. 
3 
The user needs to connect lines to every small rectangle wich are filled with text 
If we try to select the node, initially the group will be selected. Then we can select individual node inside group. Now we can connect nodes inside group using Connectors (through Quick Command). 
4 
it must also be possible to add rectangles to the NodeGroup. 
 
Yes, it is possible to add number of Nodes to the Group. We have added 7 nodes to the group in the provided sample. 
5 
Also it would be nice if the nodes could be moved with the arrow keys on the keyboard. How do I enable this function? 
 
We don’t have support to nudge the Nodes in a group. 
 
Additional Details: 
 
In this sample, we have added 7 Nodes to the Group. Also, Port and annotation(text) have been added for each node in the group. 
 
 
 
Regards, 
Ranjitha A. 


Olivier Verhaegen
Replied On April 16, 2017 05:35 PM

Hi Ranjitha,

Thank you for your example, it has helped me out a lot.

I'm still facing one problem though. I use stencil to add nodes and groups to the diagram.
So I also use xaml instead of C# (for adding nodes and groups to stencil).

I can add my group from the stencil to the diagram.
But when i delete the group using the built in delete button, I get the following error.

System.NullReferenceException:
Object reference not set to an instance of an object.

Do you know what causes this error?
My project is attached to this message. It may be easier if you see it for yourself.

Thank you very much for your help.

Olivier Verhaegen

Attachment: TestDiagramCSharp_f8838b48.zip

Saranya Chandrasekaran [Syncfusion]
Replied On April 17, 2017 04:53 AM

Hi Oliver,

 

We have confirmed that the reported issue “Exception raised while deleting group” as an issue and a support incident is created under your account to track the status of the issue. Please logon to our support website to check for further updates.

 

https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents

 

Regards,

Saranya C.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;