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.

Allowing All Characters when loading Diagram Nodes from Controllers

Thread ID:

Created:

Updated:

Platform:

Replies:

119894 Aug 11,2015 09:14 AM Aug 12,2015 08:37 AM ASP.NET MVC 1
loading
Tags: Diagram
Ryan Obbink
Asked On August 11, 2015 09:14 AM

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



Shyam G [Syncfusion]
Replied On August 12, 2015 08:37 AM

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

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.

;