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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

What is the meaning to this line

Thread ID:





130477 May 15,2017 10:37 AM UTC May 16,2017 07:03 AM UTC ASP.NET MVC 1
Tags: Diagram
Jonathan Dorval
Asked On May 15, 2017 10:37 AM UTC

var dropDownObj = $('#list').ejDropDownList("instance");
var diagram = $('#myDiagram').ejDiagram("model");

Hello, when looking at the MVC doc, I fell a couple time on parts where you interact directly in javascript such as this line.
Sometimes, we pass ("instance"), sometimes it's ("model").

I've searched through the online doc but can't find info on these parameters, could somebody explain to me ? Or point to any resources that could help me understand

Thank you in advance

Shyam G [Syncfusion]
Replied On May 16, 2017 07:03 AM UTC

Hi Jonathan, 
var diagram = $('#myDiagram').ejDiagram("instance"); 
It returns the diagram objects which has public API methods and the diagram model properties. 
var diagram = $('#myDiagram').ejDiagram("model"); 
It returns the diagram’s model properties alone. 
Shyam G 


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon