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. Image for the cookie policy date

Allowing All Characters when loading Diagram Nodes from Controllers

Hi there,

Here are the specs that are currently being used.
VS 2013
.Net Framework 4.5.1

We are currently regression testing our system, and I am trying to get our Syncfusion diagram to load with the following characters without issue.  

  1. 0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/£±§]*$#
  2. [""]

Right now I am trying to the number 2 string [""].

We are loading the Shape node from the controller as follows with Json Encoding:
Label.Name = "[\"\"]"
Label.Text = "[\"\"]"
FlowShape.Name = "[\"\"]"

In the view, when the following statement runs:

@Html.EJ().Diagram("Diagram", ViewData["DiagramModel"] as WebAppFast.Controls.Syncfusion.Diagramming.SfDiagramProperties)

we get the following error:

Error in VS dynamic build of view

Screenshot of debug session in controller:

Node Name in Controller

So, the question is, how do we format the data sending into the ViewData in the controller to have it render correctly in the view.  I'm assuming the render should be in a Json format as sent in or unicode, but that is just a wild guess.

Let me know what you find out.


- Ryan Obbink

1 Reply

SG Shyam G Syncfusion Team August 12, 2015 12:37 PM UTC

Hi Ryan

Thanks for using Syncfusion products.

We suggest you to set label’s text as  string.Empty or “”  instead of "[\"\"]" to resolve your reported issue.  However node’s name should not be set as an empty.

Please let us know if any concerns.

Shyam G

Live Chat Icon For mobile
Up arrow icon