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
Syncfusion 13.1.0.21
ASP.Net MVC 5
.Net Framework 4.5.1
'bower_components/modernizr/modernizr.js',
'bower_components/jquery-workflow/jquery.js',
'bower_components/bootstrap/dist/js/bootstrap.js',
'bower_components/respond-minmax/dest/respond.src.js',
'bower_components/bootstrap3-dialog/dist/js/bootstrap-dialog.js',
'bower_components/jcarousellite/jcarousellite.js',
'bower_components/jquery-ui/jquery-ui.js',
'bower_components/jsrender/jsrender.js',
'bower_components/jquery-validation/dist/jquery.validate.js',
'bower_components/jquery-validation/dist/additional-methods.js',
'bower_components/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js',
'bower_components/jquery.easing/js/jquery.easing.js',
'bower_components/jquery.easing/js/jquery.easing.compatibility.js',
'Scripts/ej/jquery.globalize.js'


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.

Thanks.

- 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.

Regards,
Shyam G

Loader.
Up arrow icon