Overview won't show

Hi All, I have a diagram and an overview on a page (and nothing else). The overview won't show with the error:
Uncaught ejDiagram: methods/properties can be accessed only after plugin creation
Error: ejDiagram: methods/properties can be accessed only after plugin creation
    at t.throwError (http://127.0.0.1/JustNet/Scripts/ej/ej.web.all.min.js:10:29902)
    at r.fn.init.n.fn.(anonymous function) [as ejDiagram] (http://127.0.0.1/JustNet/Scripts/ej/ej.web.all.min.js:10:23636)
    at Object._setParent (http://127.0.0.1/JustNet/Scripts/ej/ej.web.all.min.js:10:11663554)
    at Object._init (http://127.0.0.1/JustNet/Scripts/ej/ej.web.all.min.js:10:11661101)
    at new <anonymous> (http://127.0.0.1/JustNet/Scripts/ej/ej.web.all.min.js:10:22664)
    at r.fn.init.n.fn.(anonymous function) [as ejOverview] (<anonymous>:10:23921)
    at HTMLDocument.<anonymous> (<anonymous>:1:25722)
    at j (<anonymous>:2:29999)
    at k (<anonymous>:2:30313)
Please advise.

View:
@model JustNet.Models.NetworkDiagramModel
<div id="DiagramContent">
    <table style="width: 100%"><tr>
        <td style="width: 49%">@Model.DiagramNetwork</td>
        <td style="width: 49%">@Model.Overview</td>
    </tr></table>
</div>

(it's the same if controls rendered as @HTML.EJ().Diagram.... )

Model:
(layoutType is RadialTree etc)
// Diagram
            DiagramNetwork = new Diagram
            { ID = "diagram" + layoutType,
                DiagramModel = new DiagramProperties
                {
                    Height = "702",
                    Width = "702",
                    Click = "diagramNetwork_Click",.....

// Overview
            Overview = new Overview { ID = "overView" + layoutType, OverviewModel = new OverviewProperties
            {
                Height = "100",
                Width = "100",
                SourceID = "diagram" + layoutType
            } };

Thanks.



1 Reply

NG Naganathan Ganesh Babu Syncfusion Team August 9, 2018 09:50 AM UTC

Hi Gyorgy Gorog, 
 
Thanks for contacting Syncfusion support. 
 
We suspect that, you are creating the instance before rendering the diagram. So only the reported issue occurs. Please check the below attached sample. 
 
Sample: 
 
 
If still reproduce the reported issue, please modify the above attached sample to reproduce the issue at our end.  
 
Regards, 
 
Naganathan K G 


Loader.
Up arrow icon